From: ZheNing Hu <adlternative@xxxxxxxxx> Create p1006-cat-file.sh to provide performance testing for `git cat-file --batch` and `git cat-file --batch-check`. This will help us compare the performance changes after we let cat-file reuse the ref-filter logic. Helped-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> Mentored-by: Christian Couder <christian.couder@xxxxxxxxx> Mentored-by: Hariom Verma <hariom18599@xxxxxxxxx> Signed-off-by: ZheNing Hu <adlternative@xxxxxxxxx> --- t/perf/p1006-cat-file.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 t/perf/p1006-cat-file.sh diff --git a/t/perf/p1006-cat-file.sh b/t/perf/p1006-cat-file.sh new file mode 100755 index 00000000000..b84ac31f9cc --- /dev/null +++ b/t/perf/p1006-cat-file.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +test_description='Basic sort performance tests' +. ./perf-lib.sh + +test_perf_default_repo + +test_expect_success 'setup' ' + git rev-list --all >rla +' + +test_perf 'cat-file --batch-check' ' + git cat-file --batch-check <rla +' + +test_perf 'cat-file --batch-check with atoms' ' + git cat-file --batch-check="%(objectname) %(objecttype)" <rla +' + +test_perf 'cat-file --batch' ' + git cat-file --batch <rla +' + +test_perf 'cat-file --batch with atoms' ' + git cat-file --batch="%(objectname) %(objecttype)" <rla +' + +test_done -- gitgitgadget