From d3fbbe7ac0a1fb5b5691674226a3a3d000e15a1c Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 12 Apr 2014 11:50:22 -0300 Subject: [PATCH] WIP: new performance test for notmuch count Probably not suitable for production because of sudo --- performance-test/T03-count.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 performance-test/T03-count.sh diff --git a/performance-test/T03-count.sh b/performance-test/T03-count.sh new file mode 100755 index 0000000..e74437e --- /dev/null +++ b/performance-test/T03-count.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +test_description='counting' + +. ./perf-test-lib.sh + +time_start + +for i in $(seq 1 10); do + echo 3 | sudo tee /proc/sys/vm/drop_caches + notmuch --version > /dev/null + time_run "from:torvalds@linux-foundation.org " \ + "notmuch count from:torvalds@linux-foundation.org" + + echo 3 | sudo tee /proc/sys/vm/drop_caches + notmuch --version > /dev/null + + time_run "from:linux-foundation.org " \ + "notmuch count from:linux-foundation.org" +done + + +time_done -- 1.9.1