Repository navigation
Reuse warm Git benchmark caches - #22657
Conversation
Merging this PR will improve performance by 8.96%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ |
Simulation | discover_workspace_from_all_members_with_excludes |
164.1 ms | 142.6 ms | +15.09% |
| ⚡ | WallTime | git_fetch_warm_reference[django] |
8.2 ms | 7.7 ms | +6.22% |
| ⚡ | WallTime | git_fetch_warm_commit[django] |
2.6 ms | 2.5 ms | +5.82% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing charlie/benchmark-warm-git (26a98ed) with main (dd59612)
Footnotes
-
54 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
|
Closes astral-sh#2846 |
9f8a992 to
26a98ed
Compare
We currently repopulate the warm Git cache each time Criterion invokes the benchmark callback. Populate it once per selected benchmark and reuse it across warmup and samples.
Measured once per change against
main(dd59612659). Setup and transfer times vary between runs. Build + run excludes waiting; elapsed includes it. Run for this change (26a98eda40).