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
Use smaller test counts to reduce CI time while still detecting regression
Changed from (10, 100, 1000) to (10, 50, 200) values.
Since the bug scales exponentially, 200 values is sufficient to prove
the optimization works (without fix: 16s+, with fix: 150ms).
Benefits:
- Test runs in ~1-2s instead of 25-65s on CI with race detector
- Still catches performance regressions (10x+ speedup is obvious)
- More reliable on slow/variable CI runners
- Faster local development feedback
Verified on:
- Go 1.24.5 without race: 0.5ms, 11ms, 152ms ✓
- Go 1.24.5 with race: 3.2ms, 68ms, 916ms ✓
- Go 1.17.13 with race: 3.7ms, 71ms, 1.07s ✓
0 commit comments