test_expect_success 'verify both methods build the same hashmaps' '
test-lazy-init-name-hash --dump --single >out.single &&
- test-lazy-init-name-hash --dump --multi >out.multi &&
- sort <out.single >sorted.single &&
- sort <out.multi >sorted.multi &&
- test_cmp sorted.single sorted.multi
-'
-
-test_expect_success 'multithreaded should be faster' '
- test-lazy-init-name-hash --perf >out.perf
+ if test-lazy-init-name-hash --dump --multi >out.multi
+ then
+ test_set_prereq REPO_BIG_ENOUGH_FOR_MULTI &&
+ sort <out.single >sorted.single &&
+ sort <out.multi >sorted.multi &&
+ test_cmp sorted.single sorted.multi
+ fi
'
test_expect_success 'calibrate' '
test-lazy-init-name-hash --single --count=$count
"
-test_perf "multi-threaded, $desc" "
+test_perf REPO_BIG_ENOUGH_FOR_MULTI "multi-threaded, $desc" "
test-lazy-init-name-hash --multi --count=$count
"