added dmoz makefile.am
[idzebra-moved-to-github.git] / test / dmoz / update.sh
index 4ad8e14..a7e019b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: update.sh,v 1.5 2002-06-19 12:38:47 adam Exp $
+# $Id: update.sh,v 1.9 2002-07-03 10:13:30 adam Exp $
 t=$1
 test -n "$t" || exit 1
 rm -f *.mf *.LCK *.tmp
@@ -10,23 +10,37 @@ while test -f dmoz.$i.xml; do
        echo -n "$i " >>times-$1.log
        rm -f zebraidx-$t.log
        ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg -f 10 update dmoz.$i.xml 
+
        grep ' zebraidx times:' zebraidx-$t.log | sed 's/.*zebraidx times://g' >>times-$t.log
-       ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log 
+
+       test -d rtmp || mkdir rtmp
+       cp *.mf rtmp
+       rm -f *.mf
+       mv rtmp/*.mf .
+
        i=`expr $i + 1`
+       mod=`expr $i % 5`
+       if test $mod -eq 0; then
+               echo "run $i" >> stat-$t.log
+               ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log 
+       fi
        if test $i = 30; then
                break
        fi
 done
 
+title="ISAM-$t `date`"
+
 cat >plot.dem <<ENDOFMESSAGE
 set output "times-$t.ps"
 set terminal postscript
+set title "$title"
 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
+        'times-$t.log' using 2 title 'real' with linespoints, \
+        'times-$t.log' using 3 title 'user' with linespoints, \
+        'times-$t.log' using 4 title 'sys' with linespoints
 ENDOFMESSAGE
 
 gnuplot plot.dem