From: Ian Jackson Date: Sat, 25 Aug 2018 11:55:42 +0000 (+0100) Subject: found git-diff-timings X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit-junk.git;a=commitdiff_plain;h=10e6f2c4ecc46fec3500c8a3be82894dce141e97 found git-diff-timings --- diff --git a/git-diff-timings.sh b/git-diff-timings.sh new file mode 100755 index 0000000..e49550c --- /dev/null +++ b/git-diff-timings.sh @@ -0,0 +1,23 @@ +#!/bin/sh +n=100 + +a=8617be5f55b0bac9282fc755228a32651eae58a1 +b=34e4102951c102210404bd4418fdeb10002730de + +while [ $n -ge 1 ]; do + n=$(( $n - 1 )) + +# git diff-tree -z --no-renames --name-only $a: $b: -- >/dev/null +# git diff-tree -z --no-renames $a: $b: -- >/dev/null + + # git cat-file tree $a: >/dev/null + # git cat-file tree $b: >/dev/null + + git cat-file -t $a: >/dev/null + git cat-file -t $b: >/dev/null + + git ls-tree -z $a: >/dev/null + git ls-tree -z $b: >/dev/null + +done +