p0004: make perf test executable
[alt-git.git] / t / perf / p0004-lazy-init-name-hash.sh
blob5afa8c8df3b4dd9f6bae4b1f46351f9ed04fa566
1 #!/bin/sh
3 test_description='Tests multi-threaded lazy_init_name_hash'
4 . ./perf-lib.sh
6 test_perf_large_repo
7 test_checkout_worktree
9 test_expect_success 'verify both methods build the same hashmaps' '
10 $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --dump --single | sort >out.single &&
11 $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --dump --multi | sort >out.multi &&
12 test_cmp out.single out.multi
15 test_expect_success 'multithreaded should be faster' '
16 $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --perf >out.perf
19 test_done