From c66f0dea7a611a3379b8ba8ef461a805d10905c8 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 2 Jul 2022 16:11:58 -0300 Subject: [PATCH] perf-test: add tests notmuch-git The main focus of these initial tests is the (currently unacceptably slow) checkout performance. --- performance-test/T07-git.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 performance-test/T07-git.sh diff --git a/performance-test/T07-git.sh b/performance-test/T07-git.sh new file mode 100755 index 00000000..11dfec05 --- /dev/null +++ b/performance-test/T07-git.sh @@ -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