t / perf / p0004-lazy-init-name-hash.shon commit p0004: simplify calls of test-lazy-init-name-hash (1c002d0)
   1#!/bin/sh
   2
   3test_description='Tests multi-threaded lazy_init_name_hash'
   4. ./perf-lib.sh
   5
   6test_perf_large_repo
   7test_checkout_worktree
   8
   9test_expect_success 'verify both methods build the same hashmaps' '
  10        test-lazy-init-name-hash --dump --single | sort >out.single &&
  11        test-lazy-init-name-hash --dump --multi  | sort >out.multi  &&
  12        test_cmp out.single out.multi
  13'
  14
  15test_expect_success 'multithreaded should be faster' '
  16        test-lazy-init-name-hash --perf >out.perf
  17'
  18
  19test_done