X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fdmoz%2Fupdate.sh;h=f54b9f639ace3762626b460dd35c31f9e59f0b47;hb=fdae0bb0b4e14521a82bdfb7e06a0e557444159d;hp=1835eeb0ef3bb7bd33b38c67a67e64b8c38da0b1;hpb=9ca612132e1ef66f43d61e5cefa854ba18c6e1a6;p=idzebra-moved-to-github.git diff --git a/test/dmoz/update.sh b/test/dmoz/update.sh index 1835eeb..f54b9f6 100755 --- a/test/dmoz/update.sh +++ b/test/dmoz/update.sh @@ -1,16 +1,35 @@ #!/bin/sh +# $Id: update.sh,v 1.6 2002-06-19 13:26:45 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 +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.log -c zebra-$t.cfg -f 10 update dmoz.$i.xml - ../../index/zebraidx -l zebraidx.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 + ../../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 <