Better stat
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Jun 2002 08:03:30 +0000 (08:03 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Jun 2002 08:03:30 +0000 (08:03 +0000)
test/dmoz/all.sh
test/dmoz/plot.dem
test/dmoz/update.sh

index 262b53c..6744996 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 #!/bin/sh
-# $Id: all.sh,v 1.4 2002-06-19 10:29:18 adam Exp $
-./update.sh b
-./update.sh c
-./update.sh d
+# $Id: all.sh,v 1.5 2002-06-20 08:03:30 adam Exp $
+while true; do
+       ./update.sh b
+       lpr times-b.ps
+       ./update.sh c
+       lpr times-c.ps
+       ./update.sh d
+       lpr times-d.ps
+done
index 0fb70ce..f5b20d6 100755 (executable)
@@ -1,5 +1,6 @@
-set output "times-b.ps"
+set output "times-d.ps"
 set terminal postscript
 set terminal postscript
+set title "ISAM-d Thu Jun 20 09:26:52 CEST 2002"
 set xlabel "runs"
 set ylabel "seconds"
 set xlabel "runs"
 set ylabel "seconds"
-plot [0:] [0:]         'times-b.log' using 2 title 'ISAM-b(real)' with linespoints,         'times-b.log' using 3 title 'ISAM-b(user)' with linespoints,         'times-b.log' using 4 title 'ISAM-b(sys)' with linespoints
+plot [0:] [0:]         'times-d.log' using 2 title 'real' with linespoints,         'times-d.log' using 3 title 'user' with linespoints,         'times-d.log' using 4 title 'sys' with linespoints
index e23de7d..0544ae2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
 #!/bin/sh
-# $Id: update.sh,v 1.7 2002-06-19 13:40:03 adam Exp $
+# $Id: update.sh,v 1.8 2002-06-20 08:03:30 adam Exp $
 t=$1
 test -n "$t" || exit 1
 rm -f *.mf *.LCK *.tmp
 t=$1
 test -n "$t" || exit 1
 rm -f *.mf *.LCK *.tmp
@@ -10,7 +10,15 @@ 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 
        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
        grep ' zebraidx times:' zebraidx-$t.log | sed 's/.*zebraidx times://g' >>times-$t.log
+
+       test -d rtmp || mkdir rtmp
+       cp *.mf rtmp
+       rm -f *.mf
+       mv rtmp/*.mf .
+
+       echo " ---------- $i ----- " >> stat-$t.log
        ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log 
        i=`expr $i + 1`
        if test $i = 30; then
        ../../index/zebraidx -l zebraidx-$t.log -c zebra-$t.cfg stat >>stat-$t.log 
        i=`expr $i + 1`
        if test $i = 30; then