Skip to content

Commit

Permalink
update stress test to create multi-pack index with large offsets and …
Browse files Browse the repository at this point in the history
…verify it (#279)
  • Loading branch information
Byron committed Jan 1, 2022
1 parent 4f6b030 commit 4b6794a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,20 @@ commit_graphs = \

stress: ## Run various algorithms on big repositories
$(MAKE) -j3 $(linux_repo) $(rust_repo) release-lean
time ./target/release/gix --verbose pack-verify --re-encode $(linux_repo)/objects/pack/*.idx
rm -Rf out; mkdir out && time ./target/release/gix --verbose pack-index-from-data -p $(linux_repo)/objects/pack/*.pack out/
time ./target/release/gix --verbose pack-verify out/*.idx

time ./target/release/gix --verbose pack-verify --statistics $(rust_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack-verify --algorithm less-memory $(rust_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack-verify --re-encode $(rust_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack verify --re-encode $(linux_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack multi-index create $(linux_repo)/objects/pack/*.idx -o $(linux_repo)/objects/pack/multi-pack-index
time ./target/release/gix --verbose pack verify $(linux_repo)/objects/pack/multi-pack-index
rm -Rf out; mkdir out && time ./target/release/gix --verbose pack index create -p $(linux_repo)/objects/pack/*.pack out/
time ./target/release/gix --verbose pack verify out/*.idx

time ./target/release/gix --verbose pack verify --statistics $(rust_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack verify --algorithm less-memory $(rust_repo)/objects/pack/*.idx
time ./target/release/gix --verbose pack verify --re-encode $(rust_repo)/objects/pack/*.idx
# We must ensure there is exactly one pack file for the pack-explode *.idx globs to work.
git repack -Ad
time ./target/release/gix --verbose pack-explode .git/objects/pack/*.idx
time ./target/release/gix --verbose pack explode .git/objects/pack/*.idx

rm -Rf delme; mkdir delme && time ./target/release/gix --verbose pack-explode .git/objects/pack/*.idx delme/
rm -Rf delme; mkdir delme && time ./target/release/gix --verbose pack explode .git/objects/pack/*.idx delme/

$(MAKE) stress-commitgraph
$(MAKE) bench-git-config
Expand Down

0 comments on commit 4b6794a

Please sign in to comment.