Skip to content

Commit

Permalink
Replace recursion with mutation in the large/infinite seconds case (#120
Browse files Browse the repository at this point in the history
)
  • Loading branch information
LilithHafner authored Sep 14, 2024
1 parent c973394 commit 989ab13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchmarking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function benchmark(init, setup, f, teardown; evals::Union{Int, Nothing}=nothing,

if seconds !== nothing && seconds >= 2.0^63*1e-9
samples === nothing && throw(ArgumentError("samples must be specified if seconds is infinite or nearly infinite (more than 292 years)"))
return benchmark(init, setup, f, teardown; evals=evals, samples=samples, seconds=nothing, gc=gc, checksum=checksum, _map=_map, _reduction=_reduction)
seconds = nothing
end

samples !== nothing && evals === nothing && throw(ArgumentError("Sorry, we don't support specifying samples but not evals"))
Expand Down

0 comments on commit 989ab13

Please sign in to comment.