Commit 756c2e6c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 58e12657
...@@ -228,6 +228,7 @@ GENsql() { ...@@ -228,6 +228,7 @@ GENsql() {
# ---- main driver ---- # ---- main driver ----
# data/versions
echo -n "# "; date --rfc-2822 echo -n "# "; date --rfc-2822
echo -n "# "; grep "^model name" /proc/cpuinfo |head -1 |sed -e 's/model name\s*: //' echo -n "# "; grep "^model name" /proc/cpuinfo |head -1 |sed -e 's/model name\s*: //'
echo -n "# "; uname -a echo -n "# "; uname -a
...@@ -237,7 +238,7 @@ echo -n "# "; mysqld --version ...@@ -237,7 +238,7 @@ echo -n "# "; mysqld --version
# pyver <egg> (<showas>) - print version of egg # pyver <egg> (<showas>) - print version of egg
pyver() { pyver() {
#return # XXX temp to save time return # XXX temp to save time
local egg=$1 local egg=$1
local showas=$2 local showas=$2
test "$showas" == "" && showas=$egg test "$showas" == "" && showas=$egg
...@@ -257,23 +258,23 @@ pyver zodb ...@@ -257,23 +258,23 @@ pyver zodb
pyver zeo pyver zeo
pyver mysqlclient pyver mysqlclient
pyver wendelin.core pyver wendelin.core
exit
# generate test databases
GENfs GENfs
GENsqlite GENsqlite
GENsql GENsql
wait wait
sync sync
# run benchmarks
N=`seq 2` # XXX repeat benchmarks N time N=`seq 2` # XXX repeat benchmarks N time
# 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 # ./zsha1.py $url
if [[ $url == zeo://* ]]; then if [[ $url == zeo://* ]]; then
echo "(skipping zsha1.go on ZEO -- Cgo does not support zeo:// protocol)" echo "(skipping zsha1.go on ZEO -- Cgo does not support zeo:// protocol)"
return return
...@@ -287,30 +288,30 @@ for i in $N; do ...@@ -287,30 +288,30 @@ 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 # 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" # xmysql -e "SHUTDOWN"
wait # wait
echo -e "\n*** NEO/go" echo -e "\n*** NEO/go"
NEOgo NEOgo
......
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