summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..78dbf4c
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+for x in $@ ; do
+ echo -en `expr match "$x" '\(.*\)_'`,`expr match "$x" '.*_\(.*\)'`,
+
+ # warm up the cache
+ for i in 1 2 3 ; do
+ ./$x &> /dev/null ;
+ done
+
+ # real benchmarking
+ for i in `seq 1 10`; do
+ ./$x ;
+ done
+ echo;
+done