p0004: avoid using pipes
[git] / t / perf / p0004-lazy-init-name-hash.sh
1 #!/bin/sh
2
3 test_description='Tests multi-threaded lazy_init_name_hash'
4 . ./perf-lib.sh
5
6 test_perf_large_repo
7 test_checkout_worktree
8
9 test_expect_success 'verify both methods build the same hashmaps' '
10         test-lazy-init-name-hash --dump --single >out.single &&
11         test-lazy-init-name-hash --dump --multi >out.multi &&
12         sort <out.single >sorted.single &&
13         sort <out.multi >sorted.multi &&
14         test_cmp sorted.single sorted.multi
15 '
16
17 test_expect_success 'multithreaded should be faster' '
18         test-lazy-init-name-hash --perf >out.perf
19 '
20
21 test_done