Skip to content

Commit 96c7642

Browse files
miguelrazgdalle
andauthored
fix benchmarks (#205)
* fix benchmarks * fix parallel benchmarks --------- Co-authored-by: Guillaume Dalle <[email protected]>
1 parent 67fd129 commit 96c7642

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmark/core.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ function all_has_edge(g::AbstractGraph)
3333
end
3434

3535
suite["core"]["has_edge"] = BenchmarkGroup(["graphs", "digraphs"])
36-
suite["core"]["has_edge"]["graphs"] = @benchmark [all_has_edge(g) for (n, g) in $GRAPHS]
37-
suite["core"]["has_edge"]["digraphs"] = @benchmark [all_has_edge(g) for (n, g) in $DIGRAPHS]
36+
suite["core"]["has_edge"]["graphs"] = @benchmarkable [all_has_edge(g) for (n, g) in $GRAPHS]
37+
suite["core"]["has_edge"]["digraphs"] = @benchmarkable [all_has_edge(g) for (n, g) in $DIGRAPHS]

benchmark/parallel/egonets.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ using BenchmarkTools
4242

4343
function comparison(f, g)
4444
println("Mulithreaded on $(Threads.nthreads())")
45-
b1 = @benchmark mapvertices($f, $g)
45+
b1 = @benchmarkable mapvertices($f, $g)
4646
println(b1)
4747

4848
println("singlethreaded")
49-
b2 = @benchmark mapvertices_single($f, $g)
49+
b2 = @benchmarkable mapvertices_single($f, $g)
5050
println(b2)
5151
return println("done")
5252
end

0 commit comments

Comments
 (0)