Skip to content

Commit

Permalink
Predict correct eltype in decompression benchmarks (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Mar 5, 2025
1 parent 3d31ff0 commit e5ce73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ for structure in [:nonsymmetric, :symmetric],
# use several random matrices to reduce variance
nb_samples = 5
As = [sparse(Symmetric(sprand(StableRNG(i), Bool, n, n, p))) for i in 1:nb_samples]
results = [coloring(A, problem, algo) for A in As]
Bs = [compress(A, result) for (A, result) in zip(As, results)]
results = [coloring(A, problem, algo; decompression_eltype=Float64) for A in As]
Bs = [compress(Float64.(A), result) for (A, result) in zip(As, results)]

SUITE[:coloring][structure][partition][decompression]["n=$n"]["p=$p"] = @benchmarkable begin
for A in $As
Expand Down

0 comments on commit e5ce73c

Please sign in to comment.