summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2012-12-27 03:15:50 +0100
committerMichael Peter Christen <mc@yacy.net>2012-12-27 03:15:50 +0100
commita6ad1d6fd1d03eea9f524878586c61f6f88c6a8c (patch)
treeaa2509556bd31a48941353ff8218e023c8efa924 /bin
parente1f89efd0d4897150cb0362862e2a7264c5db3d0 (diff)
update to search tests (use yacy interface and a bugfix)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/search.sh2
-rwxr-xr-xbin/searchtest.sh7
2 files changed, 5 insertions, 4 deletions
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
+