Commit ad910f3
authored
fix: use deterministic benchmark contribution data (JhaSourav07#1720)
## Summary
This PR makes the benchmark dataset deterministic by replacing random
contribution generation with a predictable calculation.
### Changes Made
* Added a deterministic contribution count generator
* Removed `Math.random()` from benchmark dataset creation
* Preserved variation in contribution values while ensuring
reproducibility
### Problem
The benchmark previously generated a different dataset on every
execution, making performance comparisons less reliable.
### Result
Benchmark runs now use a consistent dataset, improving reproducibility
and regression tracking.
Closes JhaSourav07#16781 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments