Skip to content

Commit

Permalink
Make benchmarks robust
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterwln committed Jan 9, 2025
1 parent 2aa166d commit bcebba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmarks/tensordirichlet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SUITE["tensordirichlet"] = BenchmarkGroup(
# `prod` BenchmarkGroup ========================
for rank in (3, 4, 5, 6)
for d in (5, 10, 20)
left = TensorDirichlet(rand([d for _ in 1:rank]...))
right = TensorDirichlet(rand([d for _ in 1:rank]...))
left = TensorDirichlet(rand([d for _ in 1:rank]...) .+ 1)
right = TensorDirichlet(rand([d for _ in 1:rank]...) .+ 1)
SUITE["tensordirichlet"]["prod"]["Closed(rank=$rank, d=$d)"] = @benchmarkable prod(ClosedProd(), $left, $right)
end
end
Expand Down

0 comments on commit bcebba4

Please sign in to comment.