Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
12778330
Commit
12778330
authored
Sep 12, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7d145ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
go/neo/t/t.sh
go/neo/t/t.sh
+15
-12
No files found.
go/neo/t/t.sh
View file @
12778330
...
...
@@ -270,19 +270,22 @@ sync
# 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
bench1
()
{
url
=
$1
# time demo-zbigarray read $url
# ./zsha1.py
$url
./zhash.py
--
$hashfunc
$url
if
[[
$url
==
zeo://
*
]]
;
then
echo
"(skipping z
sha1
.go on ZEO -- Cgo does not support zeo:// protocol)"
echo
"(skipping z
hash
.go on ZEO -- Cgo does not support zeo:// protocol)"
return
fi
go run z
sha1.go
--log_dir
=
$log
$url
# go run z
sha1.go --log_dir=$log
-useprefetch $url
go run z
hash.go
--log_dir
=
$log
-
$hashfunc
$url
# go run z
hash.go --log_dir=$log -$hashfunc
-useprefetch $url
}
echo
-e
"
\n
*** FileStorage"
...
...
@@ -315,13 +318,13 @@ done
# xmysql -e "SHUTDOWN"
# wait
echo
-e
"
\n
*** NEO/go"
NEOgo
for
i
in
$N
;
do
bench1 neo://
$cluster
@
$Mbind
done
xneoctl
set
cluster stopping
wait
#
echo -e "\n*** NEO/go"
#
NEOgo
#
for i in $N; do
#
bench1 neo://$cluster@$Mbind
#
done
#
xneoctl set cluster stopping
#
wait
# all ok
trap
- EXIT
...
...
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