test(replay): optimize runtime performance#62
Merged
bmwill merged 2 commits intobmwill:masterfrom Apr 13, 2026
Merged
Conversation
So we use stdout pipe to avoid thousands of forc-exec over `git ls-tree` and `git show`. Benchmark result for Apple M1 Pro (10 cores): | Repo | Before | After | Speedup | |-----------------------|-------:|-------:|--------:| | bmwill/diffy (full) | 31.76s | 11.06s | 2.9× | | rust-lang/cargo (200) | 93.04s | 14.60s | 6.4× |
Reduces subprocess count from 3 to 2 per commit pair. Benchmark result for full history replay (on 96-cores Linux host): | Repo | master | this | Speedup | |-----------------|----------|---------|---------| | rust-lang/cargo | 59.40s | 5.61s | 10.6× | | rust-lang/rust | 1682.06s | 101.66s | 16.5× | | python/cpython | 439.20s | 106.31s | 4.1× | On macOS M1 10 cores mahchine: | Repo | master | this | Speedup | |-----------------------|-------:|-------:|--------:| | bmwill/diffy (full) | 34.01s | 8.91s | 3.8× | | rust-lang/cargo (200) | 96.22s | 11.58s | 8.3× |
5af3f1b to
3586742
Compare
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.
git ls-treeandgit show.--rawand--numstatinto single git callBenchmark result for full history replay (on 96-cores Linux host):
On macOS M1 10 cores mahchine: