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
f834f40d
Commit
f834f40d
authored
Feb 26, 2018
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X zhash: Show N(obj) read, not 1, in place of N(iter)
parent
7f22bba6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
go/neo/t/tzodb.go
go/neo/t/tzodb.go
+3
-3
go/neo/t/tzodb.py
go/neo/t/tzodb.py
+2
-2
No files found.
go/neo/t/tzodb.go
View file @
f834f40d
...
...
@@ -230,9 +230,9 @@ loop:
hresult
,
oid
-
1
,
nread
,
δt
,
δt
/
time
.
Duration
(
oid
),
x
)
// XXX /oid cast ?
}
else
{
topic
:=
fmt
.
Sprintf
(
bench
,
x
)
// XXX -> better text/template
fmt
.
Printf
(
"Benchmark%s
1 %.1f µs/object
\t
# %s oid=0..%d
nread=%d t=%s
\n
"
,
topic
,
float64
(
δt
)
/
float64
(
oid
)
/
float64
(
time
.
Microsecond
),
hresult
,
oid
-
1
,
nread
,
δt
)
fmt
.
Printf
(
"Benchmark%s
%d %.1f µs/object
\t
# %s
nread=%d t=%s
\n
"
,
topic
,
oid
-
1
,
float64
(
δt
)
/
float64
(
oid
)
/
float64
(
time
.
Microsecond
),
hresult
,
nread
,
δt
)
}
if
check
!=
""
&&
hresult
!=
check
{
...
...
go/neo/t/tzodb.py
View file @
f834f40d
...
...
@@ -173,8 +173,8 @@ def zhash():
(
hresult
,
oid
-
1
,
nread
,
dt
,
dt
*
1E6
/
oid
,
x
))
else
:
topic
=
bench
%
x
print
(
'Benchmark%s
1 %.1f µs/object
\
t
# %s oid=0..%d
nread=%d t=%.3fs'
%
\
(
topic
,
dt
*
1E6
/
oid
,
hresult
,
oid
-
1
,
nread
,
dt
))
print
(
'Benchmark%s
%d %.1f µs/object
\
t
# %s
nread=%d t=%.3fs'
%
\
(
topic
,
oid
-
1
,
dt
*
1E6
/
oid
,
hresult
,
nread
,
dt
))
if
check
!=
None
and
hresult
!=
check
:
print
(
"%s: hash mismatch: expected %s ; got %s
\
t
# x=%s"
%
(
url
,
check
,
hresult
,
x
),
file
=
sys
.
stderr
)
...
...
Kirill Smelkov
@kirr
mentioned in commit
3f578560
·
Jul 12, 2018
mentioned in commit
3f578560
mentioned in commit 3f578560c49222cf4b0f8ba2b408d3db9c94444d
Toggle commit list
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