about summary refs log tree commit diff
path: root/third_party/git/t/perf/p4000-diff-algorithms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/perf/p4000-diff-algorithms.sh')
-rwxr-xr-xthird_party/git/t/perf/p4000-diff-algorithms.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/git/t/perf/p4000-diff-algorithms.sh b/third_party/git/t/perf/p4000-diff-algorithms.sh
new file mode 100755
index 000000000000..7e00c9da47d7
--- /dev/null
+++ b/third_party/git/t/perf/p4000-diff-algorithms.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+test_description="Tests diff generation performance"
+
+. ./perf-lib.sh
+
+test_perf_default_repo
+
+test_perf 'log -3000 (baseline)' '
+	git log -3000 >/dev/null
+'
+
+test_perf 'log --raw -3000 (tree-only)' '
+	git log --raw -3000 >/dev/null
+'
+
+test_perf 'log -p -3000 (Myers)' '
+	git log -p -3000 >/dev/null
+'
+
+test_perf 'log -p -3000 --histogram' '
+	git log -p -3000 --histogram >/dev/null
+'
+
+test_perf 'log -p -3000 --patience' '
+	git log -p -3000 --patience >/dev/null
+'
+
+test_done