From: Adam Dickmeiss Date: Sun, 10 Dec 2006 11:54:29 +0000 (+0000) Subject: Added new test which makes variations to ISAM entry size. X-Git-Tag: ZEBRA.2.0.8~44 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=1c4ec5fadcec479a371b7a31cda840ef81e43154 Added new test which makes variations to ISAM entry size. --- diff --git a/isamb/Makefile.am b/isamb/Makefile.am index 1624001..05b3e2d 100644 --- a/isamb/Makefile.am +++ b/isamb/Makefile.am @@ -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 index 0000000..7c62ea2 --- /dev/null +++ b/isamb/bench2.plt @@ -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 index 0000000..aba1c4e --- /dev/null +++ b/isamb/bench2.sh @@ -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 +