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
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
Stefane Fermigier
neo
Commits
9562304c
Commit
9562304c
authored
Feb 26, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X zlib: no need to benchmark on wczdata-{avg,max}
They are the same in size.
parent
6b9ed46d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
go/neo/t/gen-testdata
go/neo/t/gen-testdata
+8
-4
go/neo/t/neotest
go/neo/t/neotest
+1
-1
go/neo/t/testdata/zlib/wczdata
go/neo/t/testdata/zlib/wczdata
+0
-0
go/neo/t/testdata/zlib/wczdata-max
go/neo/t/testdata/zlib/wczdata-max
+0
-0
No files found.
go/neo/t/gen-testdata
View file @
9562304c
...
@@ -83,8 +83,12 @@ def writeobjects(prefix, objv):
...
@@ -83,8 +83,12 @@ def writeobjects(prefix, objv):
hi
=
i
hi
=
i
objavg
=
objv
[
lo
]
objavg
=
objv
[
lo
]
#print '[%d,%d] -> avgi=%d, avglen=%d maxlen=%d' % (0, len(objv), lo, len(objavg), len(objv[-1]))
objmax
=
objv
[
-
1
]
#print '[%d,%d] -> avgi=%d, avglen=%d maxlen=%d' % (0, len(objv), lo, len(objavg), len(objmax))
if
len
(
objavg
)
==
len
(
objmax
):
# it is so for wczdata
writefile
(
'%s'
%
prefix
,
zcompress
(
objavg
))
else
:
writefile
(
'%s-avg'
%
prefix
,
zcompress
(
objavg
))
writefile
(
'%s-avg'
%
prefix
,
zcompress
(
objavg
))
writefile
(
'%s-max'
%
prefix
,
zcompress
(
objv
[
-
1
]))
writefile
(
'%s-max'
%
prefix
,
zcompress
(
objv
[
-
1
]))
...
...
go/neo/t/neotest
View file @
9562304c
...
@@ -898,7 +898,7 @@ bench_cpu() {
...
@@ -898,7 +898,7 @@ bench_cpu() {
nrun tcpu_go sha1
$size
nrun tcpu_go sha1
$size
done
done
datav
=
"null-1K null-4K null-2M wczdata
-avg wczdata-max
prod1-avg prod1-max"
datav
=
"null-1K null-4K null-2M wczdata prod1-avg prod1-max"
for
data
in
$datav
;
do
for
data
in
$datav
;
do
nrun tcpu.py unzlib
$data
nrun tcpu.py unzlib
$data
nrun tcpu_go unzlib
$data
nrun tcpu_go unzlib
$data
...
...
go/neo/t/testdata/zlib/wczdata
-avg
→
go/neo/t/testdata/zlib/wczdata
View file @
9562304c
File moved
go/neo/t/testdata/zlib/wczdata-max
deleted
100644 → 0
View file @
6b9ed46d
File deleted
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