Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix benchmarks #205

Merged
merged 3 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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