yacy_search_server/bin/searchtest.sh
2008-06-11 21:33:36 +00:00

12 lines
260 B
Bash
Executable File

#!/bin/sh
cd "`dirname $0`"
S=`date "+%s"`
C=0
for N in `cat searchtest.words`; do
echo search for $N:
./localsearch.sh $N
C=$(($C+1))
done
T=`date "+%s"`
echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds