JuliaCI / JuliaCI/BenchmarkTools.jl
Reproducible randomness in setup for BenchmarkGroups
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 684
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the BenchmarkGroup and Benchmark entry points and tracing how each benchmark in a group is initialized and run. Compare the proposed setup::Function and Expr approaches, then define and test behavior showing that benchmarks in one group can receive reproducible random-number sequences.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100