align block sizes for isam sys. Better plot for test
[idzebra-moved-to-github.git] / test / dmoz / update.sh
index f8a0872..e99e2bb 100755 (executable)
@@ -1,17 +1,33 @@
 #!/bin/sh
-# $Id: update.sh,v 1.2 2002-06-19 08:32:34 adam Exp $
+# $Id: update.sh,v 1.3 2002-06-19 10:29:18 adam Exp $
 t=$1
 test -n "$t" || exit 1
 rm -f *.mf *.LCK *.tmp
 ../../index/zebraidx -l zebraidx.log init 
 i=0
-rm -f times-$t.log zebraidx-$t.log
+rm -f times-$t.log zebraidx-$t.log stat-$t.log
 while test -f dmoz.$i.xml; do
        echo -n "$i " >>times-$1.log
-       /usr/bin/time -f '%e %U %P' -a -o times-$t.log ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg -f 10 update dmoz.$i.xml
-       ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat
+       /usr/bin/time -f '%e %U %S %P' -a -o times-$t.log ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg -f 10 update dmoz.$i.xml 
+       ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log 
        i=`expr $i + 1`
-       if test $i = 29; then
+       if test $i = 30; then
                break
        fi
 done
+
+cat >plot.dem <<ENDOFMESSAGE
+set xlabel "runs"
+set ylabel "seconds"
+plot [0:] [0:] \
+        'times-$t.log' using 2 title 'ISAM-$t(real)' with linespoints, \
+        'times-$t.log' using 3 title 'ISAM-$t(user)' with linespoints, \
+        'times-$t.log' using 4 title 'ISAM-$t(sys)' with linespoints
+set output "times-$t.ps"
+set terminal postscript
+replot
+ENDOFMESSAGE
+
+gnuplot plot.dem
+
+