From e9dd0e6831a1ef576e936e08976295c2d28922e6 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 11 Jun 2008 10:36:37 +0000 Subject: [PATCH] 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 --- bin/searchtest.sh | 9 ++++ bin/searchtest.words | 100 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100755 bin/searchtest.sh create mode 100644 bin/searchtest.words diff --git a/bin/searchtest.sh b/bin/searchtest.sh new file mode 100755 index 000000000..9d54e3ef1 --- /dev/null +++ b/bin/searchtest.sh @@ -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 diff --git a/bin/searchtest.words b/bin/searchtest.words new file mode 100644 index 000000000..c290b75d4 --- /dev/null +++ b/bin/searchtest.words @@ -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