From: David Bremner Date: Sat, 2 Jul 2022 19:11:58 +0000 (-0300) Subject: perf-test: add tests notmuch-git X-Git-Tag: 0.37_rc0~36 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=c66f0dea7a611a3379b8ba8ef461a805d10905c8;hp=349987668ae1da3ee30cdbe3a4acc11bb2219e0d perf-test: add tests notmuch-git The main focus of these initial tests is the (currently unacceptably slow) checkout performance. --- 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