Skip to content

test(e2e): record how fast the machine was next to the nightly performance metrics - #699

Merged
ogorzalka merged 2 commits into
developfrom
test/perf-calibration
Nov 24, 2026
Merged

ogorzalka merged 2 commits into
developfrom
test/perf-calibration

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

The nightly performance job (PERF-07) has failed every night since 20 Nov. It compares raw milliseconds with the last good night, 10 % apart, on shared runners whose speed varies by a factor of two: the nights of 20 to 23 Nov all ran the same commit (75a5c46) and measured a cold boot between 40 and 73 ms; on 24 Nov two attempts of the same commit gave 39.6 ms and 76.9 ms. The object cache provider is not the cause (its configuration work costs about 0.1 ms per request, measured, against a boot of 35 ms).

This adds a calibration object to the report, next to metrics: how fast the machine ran two fixed pieces of work that do not depend on the framework (cpu_ref_ms, a chain of hashes; fs_ref_ms, a few hundred small files written and read), each the median of 5 runs. The comparison prints them next to the verdict and never judges them: nothing is loosened, the gate is unchanged. Each night's report is already uploaded as the perf07-metrics artifact, so after a week the data will say whether the timings can be normalised by the machine's speed, and the comparison can then be switched to ratios.

Tests: node --test support/perf.test.ts passes (34), the PHP fixture runs and prints stable numbers locally. The spec itself is exercised by the nightly.

@ogorzalka
ogorzalka merged commit 2689cab into develop Nov 24, 2026
22 checks passed
@ogorzalka ogorzalka mentioned this pull request Nov 24, 2026
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.

1 participant