Commit cbe38684 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8c6d979a
...@@ -55,8 +55,9 @@ Spy() { ...@@ -55,8 +55,9 @@ Spy() {
# Sgo <data.fs> - spawn NEO/go storage # Sgo <data.fs> - spawn NEO/go storage
Sgo() { Sgo() {
# -alsologtostderr
exec -a Sgo \ exec -a Sgo \
neo -log_dir=$log -alsologtostderr storage -cluster=$cluster -bind=$Sbind -masters=$Mbind $@ & neo -log_dir=$log storage -cluster=$cluster -bind=$Sbind -masters=$Mbind $@ &
} }
...@@ -214,7 +215,6 @@ GENsql ...@@ -214,7 +215,6 @@ GENsql
wait wait
sync sync
exit
N=`seq 2` # XXX repeat benchmarks N time N=`seq 2` # XXX repeat benchmarks N time
...@@ -223,6 +223,10 @@ bench1() { ...@@ -223,6 +223,10 @@ bench1() {
url=$1 url=$1
time demo-zbigarray read $url time demo-zbigarray read $url
./zsha1.py $url ./zsha1.py $url
if [[ $url == zeo://* ]]; then
echo "(skipping zsha1.go on ZEO -- Cgo does not support zeo:// protocol)"
return
fi
go run zsha1.go $url go run zsha1.go $url
# TODO zsha1.go -prefetch=1 # TODO zsha1.go -prefetch=1
} }
...@@ -232,29 +236,37 @@ for i in $N; do ...@@ -232,29 +236,37 @@ for i in $N; do
bench1 $fs1/data.fs bench1 $fs1/data.fs
done done
echo -e "\n*** ZEO" # echo -e "\n*** ZEO"
Zpy $fs1/data.fs # Zpy $fs1/data.fs
for i in $N; do # for i in $N; do
bench1 zeo://$Zbind # bench1 zeo://$Zbind
done # done
killall runzeo # killall runzeo
wait # wait
echo -e "\n*** NEO/py sqlite" # echo -e "\n*** NEO/py sqlite"
NEOpylite # NEOpylite
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
echo -e "\n*** NEO/py sql" # echo -e "\n*** NEO/py sql"
NEOpysql # NEOpysql
# for i in $N; do
# bench1 neo://$cluster@$Mbind
# done
# xneoctl set cluster stopping
# xmysql -e "SHUTDOWN"
# wait
echo -e "\n*** NEO/go"
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
xmysql -e "SHUTDOWN"
wait wait
exit 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