From a6ad1d6fd1d03eea9f524878586c61f6f88c6a8c Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 27 Dec 2012 03:15:50 +0100 Subject: update to search tests (use yacy interface and a bugfix) --- bin/search.sh | 2 +- bin/searchtest.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/search.sh b/bin/search.sh index aa74583a2..5f68dfbb5 100755 --- a/bin/search.sh +++ b/bin/search.sh @@ -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"' \ No newline at end of file +./search1.sh -y localhost:$port "$1" \ No newline at end of file diff --git a/bin/searchtest.sh b/bin/searchtest.sh index 3a40ed6bf..eea86e7d6 100755 --- a/bin/searchtest.sh +++ b/bin/searchtest.sh @@ -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 + -- cgit v1.2.3