Skip to content

Commit

Permalink
Rename benchmarks to avoid parsing as tuples (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill authored Aug 12, 2024
1 parent c816441 commit 8451650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmark/hessian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function hessbench_arrowhead(method)
]
x = rand(N)
f = ArrowHead(K)
suite["(N=$N, K=$K)"] = @benchmarkable hessian_sparsity($f, $x, $method)
suite["N=$N, K=$K"] = @benchmarkable hessian_sparsity($f, $x, $method)
end
return suite
end
Expand Down Expand Up @@ -86,7 +86,7 @@ function hessbench_randomsparsity(method)
]
x = rand(N)
f = RandomSparsity(N, K)
suite["(N=$N, K=$K)"] = @benchmarkable hessian_sparsity($f, $x, $method)
suite["N=$N, K=$K"] = @benchmarkable hessian_sparsity($f, $x, $method)
end
return suite
end
Expand Down
4 changes: 2 additions & 2 deletions benchmark/jacobian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function jacbench_sparsemul(method)
for n in [50], p in [0.01, 0.25], depth in [5]
x = rand(n)
f = IteratedSparseMul(; n, p, depth)
suite["(n=$n, p=$p, depth=$depth)"] = @benchmarkable jacobian_sparsity(
suite["n=$n, p=$p, depth=$depth"] = @benchmarkable jacobian_sparsity(
$f, $x, $method
)
end
Expand Down Expand Up @@ -75,7 +75,7 @@ function jacbench_conv(method)
layer = Conv((5, 5), 3 => 2)
suite = BenchmarkGroup()
for N in (28, 128)
suite["size=$(N)x$(N)x3"] = @benchmarkable jacobian_sparsity(
suite["N=$N"] = @benchmarkable jacobian_sparsity(
$layer, $(rand(N, N, 3, 1)), $method
)
end
Expand Down

0 comments on commit 8451650

Please sign in to comment.