Commit 12778330 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7d145ff9
...@@ -270,19 +270,22 @@ sync ...@@ -270,19 +270,22 @@ sync
# run benchmarks # run benchmarks
N=`seq 4` # XXX repeat benchmarks N time N=`seq 2` # XXX repeat benchmarks N time
#hashfunc=sha1
#hashfunc=adler32
hashfunc=null
# time1 <url> - run benchmarks on the URL once # time1 <url> - run benchmarks on the URL once
bench1() { bench1() {
url=$1 url=$1
# time demo-zbigarray read $url # time demo-zbigarray read $url
# ./zsha1.py $url ./zhash.py --$hashfunc $url
if [[ $url == zeo://* ]]; then if [[ $url == zeo://* ]]; then
echo "(skipping zsha1.go on ZEO -- Cgo does not support zeo:// protocol)" echo "(skipping zhash.go on ZEO -- Cgo does not support zeo:// protocol)"
return return
fi fi
go run zsha1.go --log_dir=$log $url go run zhash.go --log_dir=$log -$hashfunc $url
# go run zsha1.go --log_dir=$log -useprefetch $url # go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
} }
echo -e "\n*** FileStorage" echo -e "\n*** FileStorage"
...@@ -315,13 +318,13 @@ done ...@@ -315,13 +318,13 @@ done
# xmysql -e "SHUTDOWN" # xmysql -e "SHUTDOWN"
# wait # wait
echo -e "\n*** NEO/go" # echo -e "\n*** NEO/go"
NEOgo # NEOgo
for i in $N; do # for i in $N; do
bench1 neo://$cluster@$Mbind # bench1 neo://$cluster@$Mbind
done # done
xneoctl set cluster stopping # xneoctl set cluster stopping
wait # wait
# all ok # all ok
trap - EXIT trap - EXIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment