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
cc7bb3c1
Commit
cc7bb3c1
authored
Sep 12, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
12778330
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
go/neo/t/t.sh
go/neo/t/t.sh
+2
-2
go/neo/t/zhash.go
go/neo/t/zhash.go
+4
-2
No files found.
go/neo/t/t.sh
View file @
cc7bb3c1
...
...
@@ -270,7 +270,7 @@ sync
# run benchmarks
N
=
`
seq
2
`
# XXX repeat benchmarks N time
N
=
`
seq
1
`
# XXX repeat benchmarks N time
#hashfunc=sha1
#hashfunc=adler32
hashfunc
=
null
...
...
@@ -279,7 +279,7 @@ hashfunc=null
bench1
()
{
url
=
$1
# time demo-zbigarray read $url
./zhash.py
--
$hashfunc
$url
#
./zhash.py --$hashfunc $url
if
[[
$url
==
zeo://
*
]]
;
then
echo
"(skipping zhash.go on ZEO -- Cgo does not support zeo:// protocol)"
return
...
...
go/neo/t/zhash.go
View file @
cc7bb3c1
...
...
@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
}
before
:=
lastTid
+
1
// XXX overflow ?
if
fals
e
{
if
tru
e
{
//defer profile.Start(profile.TraceProfile).Stop()
//defer profile.Start(profile.MemProfile).Stop()
defer
profile
.
Start
(
profile
.
CPUProfile
)
.
Stop
()
}
for
qqq
:=
0
;
qqq
<
1
0
;
qqq
++
{
for
qqq
:=
0
;
qqq
<
3
0
;
qqq
++
{
tstart
:=
time
.
Now
()
h
.
Reset
()
// XXX temp
...
...
@@ -203,8 +203,10 @@ 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