X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fdmoz%2Fupdate.sh;h=94787211855e10908027539665065f915bfae725;hb=8a0144a3925311102133d62ac6258ace8d7187eb;hp=e99e2bb2b5231abbd7972c4fd468d83a79e2d3e9;hpb=1dec188ccbdafb0ec7b7c98857d701a7b77d46a1;p=idzebra-moved-to-github.git diff --git a/test/dmoz/update.sh b/test/dmoz/update.sh index e99e2bb..9478721 100755 --- a/test/dmoz/update.sh +++ b/test/dmoz/update.sh @@ -1,31 +1,43 @@ #!/bin/sh -# $Id: update.sh,v 1.3 2002-06-19 10:29:18 adam Exp $ t=$1 test -n "$t" || exit 1 +test -d reg-$t && rm -fr reg-$t +mkdir reg-$t + 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 stat-$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 %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 + 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 + i=`expr $i + 1` + mod=`expr $i % 50` + 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 <