added a test script for profiling of local search speed and a list of search words

current result: 120 milliseconds for a single search during a sequence of 100 searches,
while the crawler is running with 500 PPM!

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4913 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2008-06-11 10:36:37 +00:00
parent 43c47218ef
commit e9dd0e6831
2 changed files with 109 additions and 0 deletions

9
bin/searchtest.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
S=`date "+%s"`
C=0
for N in `cat searchtest.words`; do
curl -s "http://localhost:8080/yacysearch.rss?query=$N&resource=local&verify=false" | grep link
C=$(($C+1))
done
T=`date "+%s"`
echo runtime = $(($T-$S)) seconds, count = $C, time per query = $((1000*($T-$S)/$C)) milliseconds

100
bin/searchtest.words Normal file
View File

@ -0,0 +1,100 @@
360
aol
apple
audi
audio
berlin
blog
bmw
boing
book
bug
cent
coach
debian
dell
dfki
distance
dollar
ebay
emacs
email
enter
error
euro
exchange
facebook
firefox
foaf
forum
foundation
free
games
gas
gif
global
gnu
god
gpl
hacker
hosting
hot
hotel
html
ibm
icq
iphone
ipod
java
jpeg
jpg
laptop
linux
local
london
map
message
microsoft
mp3
mpeg
myspace
naruto
new
news
notebook
open
p2p
paris
php
png
pokemon
poker
price
psp
san
search
software
source
star
statistics
stock
street
tech
tips
tokio
trek
ubuntu
unix
war
web
welcome
widget
wii
wikipedia
windows
wwe
www
xbox
yacy
york
youtube