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
The warm Git benchmarks prime a fresh cache every time Criterion invokes their callback, including warm-up and each sample. With the Django fixture, that repeatedly pays for a cold fetch outside the measured loop and extends the benchmark job.
Retain a lazily initialized cache for each warm case so priming happens once per benchmark. Filtered-out cases do not prime a cache.
In this comparison, git_fetch elapsed time fell by 4m56s (46%).
Measurement
Base
This PR
Reduction
Nine warm Git cases, including setup
5m47s
55.5s
84%
Complete git_fetch suite
10m39s
5m43s
46%
Run benchmarks step
13m03s
8m05s
38%
Complete walltime run job
14m12s
10m10s
28%
Compared the base commit 1d62f57d with this PR at d71256b94, both on codspeed-macro-x64-ryzen-9950x-ubuntu-24-04. All 15 Git cases still collected 10 samples each. The six cold cases took 4m52s → 4m47s; most of the reduction is in the warm cases. Each Django warm case fell from 94–105s to 9–10s.
Workflow creation to walltime completion was 31m17s → 22m26s, including build and scheduling variation. Artifact download grew from 51s to 1m49s, reducing the gain in the complete run job. These are single-run observations; suite and case durations come from log timestamps, and step/job durations come from GitHub Actions.
⚠️8 benchmarks spent significant time in system calls
System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.
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
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 warm Git benchmarks prime a fresh cache every time
Criterioninvokes their callback, including warm-up and each sample. With the Django fixture, that repeatedly pays for a cold fetch outside the measured loop and extends the benchmark job.Retain a lazily initialized cache for each warm case so priming happens once per benchmark. Filtered-out cases do not prime a cache.