X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fdmoz%2Fupdate.sh;h=a7e019bbcb1d3be9c877312fd64c85b768acf35f;hp=f8a08726ffc858828e7dcb0679260f70e0f2f270;hb=c126f98b685389719342f338083e39f7fcbc42b3;hpb=a07f447c2312b6af6a818c82105343e21f743387 diff --git a/test/dmoz/update.sh b/test/dmoz/update.sh index f8a0872..a7e019b 100755 --- a/test/dmoz/update.sh +++ b/test/dmoz/update.sh @@ -1,17 +1,48 @@ #!/bin/sh -# $Id: update.sh,v 1.2 2002-06-19 08:32:34 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 -../../index/zebraidx -l zebraidx.log init +../../index/zebraidx -l zebraidx-$t.log init i=0 -rm -f times-$t.log zebraidx-$t.log +rm -f times-$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 + 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 + + test -d rtmp || mkdir rtmp + cp *.mf rtmp + rm -f *.mf + mv rtmp/*.mf . + i=`expr $i + 1` - if test $i = 29; then + 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 <