diff --git a/benchmark/core.jl b/benchmark/core.jl index c01e8128d..75f0bef48 100644 --- a/benchmark/core.jl +++ b/benchmark/core.jl @@ -33,5 +33,5 @@ function all_has_edge(g::AbstractGraph) end suite["core"]["has_edge"] = BenchmarkGroup(["graphs", "digraphs"]) -suite["core"]["has_edge"]["graphs"] = @benchmark [all_has_edge(g) for (n, g) in $GRAPHS] -suite["core"]["has_edge"]["digraphs"] = @benchmark [all_has_edge(g) for (n, g) in $DIGRAPHS] +suite["core"]["has_edge"]["graphs"] = @benchmarkable [all_has_edge(g) for (n, g) in $GRAPHS] +suite["core"]["has_edge"]["digraphs"] = @benchmarkable [all_has_edge(g) for (n, g) in $DIGRAPHS] diff --git a/benchmark/parallel/egonets.jl b/benchmark/parallel/egonets.jl index 7faf3a3cf..22d239019 100644 --- a/benchmark/parallel/egonets.jl +++ b/benchmark/parallel/egonets.jl @@ -42,11 +42,11 @@ using BenchmarkTools function comparison(f, g) println("Mulithreaded on $(Threads.nthreads())") - b1 = @benchmark mapvertices($f, $g) + b1 = @benchmarkable mapvertices($f, $g) println(b1) println("singlethreaded") - b2 = @benchmark mapvertices_single($f, $g) + b2 = @benchmarkable mapvertices_single($f, $g) println(b2) return println("done") end