Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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!

orbitere9dd0e6831a1
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