Skip to content

Commit

Permalink
fix benchmarks (#205)
Browse files Browse the repository at this point in the history
* fix benchmarks

* fix parallel benchmarks

---------

Co-authored-by: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
  • Loading branch information
miguelraz and gdalle committed Feb 9, 2023
1 parent 67fd129 commit 96c7642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmark/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 2 additions & 2 deletions benchmark/parallel/egonets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96c7642

Please sign in to comment.