Repository navigation
test(e2e): record how fast the machine was next to the nightly performance metrics - #699
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
calibrationobject to the report, next tometrics: 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 theperf07-metricsartifact, 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.tspasses (34), the PHP fixture runs and prints stable numbers locally. The spec itself is exercised by the nightly.