You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reproducible randomness in setup for BenchmarkGroups #201
When working with random numbers or would be useful to have a way to guarantee that each benchmark in a group uses the same series of numbers. Unless I'm mistaken there is no way to do this now.
If BenchmarkGroup had a property setup::Function which was evaluated for each Benchmark, one could use setup=()->seed! (1234) to make sure that the benchmark runs use the same sets of numbers.
Or setupcould be an Expr so you could create a new rng.
Activity
[-]Setup for BenchmarkGroups[/-][+]Reproducible randomness in setup for BenchmarkGroups[/+]gdalle commentedon Sep 18, 2023
Wanna try a PR @gustaphe ?
gustaphe commentedon Sep 21, 2023
@gdalle Sure