Added new test which makes variations to ISAM entry size.
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 10 Dec 2006 11:54:29 +0000 (11:54 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 10 Dec 2006 11:54:29 +0000 (11:54 +0000)
isamb/Makefile.am
isamb/bench2.plt [new file with mode: 0644]
isamb/bench2.sh [new file with mode: 0755]

index 1624001..05b3e2d 100644 (file)
@@ -1,11 +1,11 @@
-## $Id: Makefile.am,v 1.14 2006-12-09 08:03:57 adam Exp $
+## $Id: Makefile.am,v 1.15 2006-12-10 11:54:29 adam Exp $
 
 noinst_LTLIBRARIES = libidzebra-isamb.la
 
 noinst_PROGRAMS = benchisamb
 check_PROGRAMS = tstisamb
 
-EXTRA_DIST = bench1.sh bench1.plt
+EXTRA_DIST = bench1.sh bench1.plt bench2.sh bench2.plt
 
 TESTS = $(check_PROGRAMS)
 
diff --git a/isamb/bench2.plt b/isamb/bench2.plt
new file mode 100644 (file)
index 0000000..7c62ea2
--- /dev/null
@@ -0,0 +1,8 @@
+set terminal postscript eps
+set output "bench2.eps"
+set xlabel "R"
+set ylabel "time"
+plot "bench2.0.dat" title "0" with linespoints, \
+     "bench2.4.dat" title "4" with linespoints, \
+     "bench2.8.dat" title "8" with linespoints, \
+     "bench2.12.dat" title "12" with linespoints
diff --git a/isamb/bench2.sh b/isamb/bench2.sh
new file mode 100755 (executable)
index 0000000..aba1c4e
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+# $Id: bench2.sh,v 1.1 2006-12-10 11:54:29 adam Exp $
+# Test for variations in size of ISAM entry
+CMD="./benchisamb -r 50 -n 1000000 -i 1"
+
+for sz in 0 4 8 12; do
+       $CMD -z $sz >bench2.$sz.dat
+       ls -l *.mf
+       sleep 2
+done
+