Skip to content

fix: make flocking scaling test robust against CI timing variance#1328

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-flocking-perf-test-vyu2r
Feb 3, 2026
Merged

fix: make flocking scaling test robust against CI timing variance#1328
braedonsaunders merged 1 commit into
mainfrom
claude/fix-flocking-perf-test-vyu2r

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

The test was failing intermittently when the ratio exceeded 4.0 due to timing noise on CI machines. Changes:

  • Collect 7 samples per input size and use median (vs single measurement)
  • Add explicit warmup phase before measurements for JIT stability
  • Pre-create scenarios to avoid setup cost in measurements
  • Increase iterations per measurement from 20 to 30
  • Raise threshold from 4.0 to 4.5 (still catches O(n²), tolerates variance)

https://claude.ai/code/session_01NEFCJzmyQAHzvjgo3PSJ3S

The test was failing intermittently when the ratio exceeded 4.0 due to
timing noise on CI machines. Changes:

- Collect 7 samples per input size and use median (vs single measurement)
- Add explicit warmup phase before measurements for JIT stability
- Pre-create scenarios to avoid setup cost in measurements
- Increase iterations per measurement from 20 to 30
- Raise threshold from 4.0 to 4.5 (still catches O(n²), tolerates variance)

https://claude.ai/code/session_01NEFCJzmyQAHzvjgo3PSJ3S
@braedonsaunders braedonsaunders merged commit 4454f4f into main Feb 3, 2026
4 checks passed
@braedonsaunders braedonsaunders deleted the claude/fix-flocking-perf-test-vyu2r branch February 4, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants