update to search tests (use yacy interface and a bugfix)

pull/1/head
Michael Peter Christen 12 years ago
parent e1f89efd0d
commit a6ad1d6fd1

@ -1,4 +1,4 @@
#!/bin/bash
cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
./search1.sh -s localhost:$port '"$1"'
./search1.sh -y localhost:$port "$1"

@ -4,9 +4,10 @@ S=`date "+%s"`
C=0
for N in `cat $1`; do
echo search for $N:
./localsearch.sh $N > /dev/null
./search.sh $N | head -1
C=$(($C+1))
T=`date "+%s"`
echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds
#sleep 1
done
T=`date "+%s"`
echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds

Loading…
Cancel
Save