treewide: be explicit about dependence on oid-array.h
[alt-git.git] / t / perf / p0090-cache-tree.sh
bloba8eabca2c4df834eb6daaf8d154d9d5b2a84c349
1 #!/bin/sh
3 test_description="Tests performance of cache tree update operations"
5 . ./perf-lib.sh
7 test_perf_large_repo
8 test_checkout_worktree
10 count=100
12 test_expect_success 'setup cache tree' '
13 git write-tree
16 test_cache_tree () {
17 test_perf "$1, $3" "
18 for i in \$(test_seq $count)
20 test-tool cache-tree $4 $2
21 done
25 test_cache_tree_update_functions () {
26 test_cache_tree 'no-op' 'control' "$1" "$2"
27 test_cache_tree 'prime_cache_tree' 'prime' "$1" "$2"
28 test_cache_tree 'cache_tree_update' 'update' "$1" "$2"
31 test_cache_tree_update_functions "clean" ""
32 test_cache_tree_update_functions "invalidate 2" "--invalidate 2"
33 test_cache_tree_update_functions "invalidate 50" "--invalidate 50"
34 test_cache_tree_update_functions "empty" "--empty"
36 test_done