3 test_description="Tests performance of update-ref"
9 test_expect_success "setup" '
12 printf "create refs/heads/%d PRE\n" $(test_seq 1000) >create &&
13 printf "update refs/heads/%d POST PRE\n" $(test_seq 1000) >update &&
14 printf "delete refs/heads/%d POST\n" $(test_seq 1000) >delete
17 test_perf "update-ref" '
18 for i in $(test_seq 1000)
20 git update-ref refs/heads/branch PRE &&
21 git update-ref refs/heads/branch POST PRE &&
22 git update-ref -d refs/heads/branch
26 test_perf "update-ref --stdin" '
27 git update-ref --stdin <create &&
28 git update-ref --stdin <update &&
29 git update-ref --stdin <delete