]> git.notmuchmail.org Git - notmuch/commitdiff
perf-test: add tests notmuch-git
authorDavid Bremner <david@tethera.net>
Sat, 2 Jul 2022 19:11:58 +0000 (16:11 -0300)
committerDavid Bremner <david@tethera.net>
Sun, 17 Jul 2022 00:27:40 +0000 (20:27 -0400)
The main focus of these initial tests is the (currently unacceptably
slow) checkout performance.

performance-test/T07-git.sh [new file with mode: 0755]

diff --git a/performance-test/T07-git.sh b/performance-test/T07-git.sh
new file mode 100755 (executable)
index 0000000..11dfec0
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+test_description='notmuch-git'
+
+. $(dirname "$0")/perf-test-lib.sh || exit 1
+
+time_start
+
+time_run 'init' "notmuch git init"
+
+time_run 'commit --force' "notmuch git commit --force"
+time_run 'commit' "notmuch git -l error commit"
+time_run 'commit' "notmuch git -l error commit"
+
+time_run 'checkout' "notmuch git checkout"
+
+time_run 'tag -inbox' "notmuch tag -inbox '*'"
+
+time_run 'checkout --force' "notmuch git checkout --force"
+
+
+
+time_done