Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p1400-update-ref.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p1400-update-ref.sh` 33 lines ยท 718 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description="Tests performance of update-ref" 4 5 . ./perf-lib.sh 6 7 test_perf_fresh_repo 8 9 test_expect_success "setup" ' 10 test_commit PRE && 11 test_commit POST && 12 for i in $(test_seq 5000) 13 do 14 printf "start\ncreate refs/heads/%d PRE\ncommit\n" $i && 15 printf "start\nupdate refs/heads/%d POST PRE\ncommit\n" $i && 16 printf "start\ndelete refs/heads/%d POST\ncommit\n" $i || return 1 17 done >instructions 18 ' 19 20 test_perf "update-ref" ' 21 for i in $(test_seq 1000) 22 do 23 git update-ref refs/heads/branch PRE && 24 git update-ref refs/heads/branch POST PRE && 25 git update-ref -d refs/heads/branch || return 1 26 done 27 ' 28 29 test_perf "update-ref --stdin" ' 30 git update-ref --stdin /dev/null 31 ' 32 33 test_done