Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
756c2e6c
Commit
756c2e6c
authored
Sep 10, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
58e12657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
go/neo/t/t.sh
go/neo/t/t.sh
+29
-28
No files found.
go/neo/t/t.sh
View file @
756c2e6c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment