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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
55cd6072
Commit
55cd6072
authored
Sep 12, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cc7bb3c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
go/neo/t/t.sh
go/neo/t/t.sh
+12
-12
go/neo/t/zhash.go
go/neo/t/zhash.go
+4
-6
No files found.
go/neo/t/t.sh
View file @
55cd6072
...
...
@@ -77,7 +77,7 @@ Sgo() {
# -cpuprofile cpu.out
# -trace trace.out
exec
-a
Sgo
\
neo
-
trace
trace
.out
-log_dir
=
$log
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
"
$@
"
&
neo
-
cpuprofile
cpu
.out
-log_dir
=
$log
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
"
$@
"
&
}
...
...
@@ -288,10 +288,10 @@ bench1() {
# go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
}
echo
-e
"
\n
*** FileStorage"
for
i
in
$N
;
do
bench1
$fs1
/data.fs
done
#
echo -e "\n*** FileStorage"
#
for i in $N; do
#
bench1 $fs1/data.fs
#
done
# echo -e "\n*** ZEO"
# Zpy $fs1/data.fs
...
...
@@ -318,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
...
...
go/neo/t/zhash.go
View file @
55cd6072
...
...
@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
}
before
:=
lastTid
+
1
// XXX overflow ?
if
tru
e
{
//
defer profile.Start(profile.TraceProfile).Stop()
if
fals
e
{
defer
profile
.
Start
(
profile
.
TraceProfile
)
.
Stop
()
//defer profile.Start(profile.MemProfile).Stop()
defer
profile
.
Start
(
profile
.
CPUProfile
)
.
Stop
()
//
defer profile.Start(profile.CPUProfile).Stop()
}
for
qqq
:=
0
;
qqq
<
3
0
;
qqq
++
{
for
qqq
:=
0
;
qqq
<
1
0
;
qqq
++
{
tstart
:=
time
.
Now
()
h
.
Reset
()
// XXX temp
...
...
@@ -203,10 +203,8 @@ loop:
if
useprefetch
{
x
+=
" +prefetch"
}
if
false
{
fmt
.
Printf
(
"%s:%x ; oid=0..%d nread=%d t=%s (%s / object) x=%s
\n
"
,
h
.
name
,
h
.
Sum
(
nil
),
oid
-
1
,
nread
,
δt
,
δt
/
time
.
Duration
(
oid
),
x
)
// XXX /oid cast ?
}
}
return
nil
...
...
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