]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
added a simple benchmark script
authorAndrew Tridgell <tridge@samba.org>
Fri, 9 Feb 2007 01:46:16 +0000 (12:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 9 Feb 2007 01:46:16 +0000 (12:46 +1100)
(This used to be ctdb commit 508cca97083bf21bcce3505d0964dd33a8298624)

ctdb/tests/bench.sh [new file with mode: 0755]

diff --git a/ctdb/tests/bench.sh b/ctdb/tests/bench.sh
new file mode 100755 (executable)
index 0000000..a55f7b7
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+killall -q ctdb_bench
+
+echo "Trying 2 nodes"
+bin/ctdb_bench --nlist nodes.txt --listen 127.0.0.2:9001 $* &
+bin/ctdb_bench --nlist nodes.txt --listen 127.0.0.1:9001 $*
+
+killall -q ctdb_bench