Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
misc
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
misc
Commits
902ef63c
Commit
902ef63c
authored
Mar 20, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8bc6d19a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
344 additions
and
183 deletions
+344
-183
Makefile
Makefile
+7
-7
go.txt
go.txt
+1
-0
go10.txt
go10.txt
+40
-0
go11.txt
go11.txt
+40
-0
go12.txt
go12.txt
+40
-0
go13.txt
go13.txt
+40
-0
go14.txt
go14.txt
+29
-29
go15.txt
go15.txt
+28
-28
go16.txt
go16.txt
+30
-30
go17.txt
go17.txt
+27
-27
go18.txt
go18.txt
+27
-27
gotip.txt
gotip.txt
+29
-29
gov.txt
gov.txt
+5
-5
syspread_test.go
syspread_test.go
+1
-1
No files found.
Makefile
View file @
902ef63c
...
...
@@ -18,14 +18,14 @@ bench_go : t_syspread_go $(XDAT) t_copy_go
./t_copy_go
>
t_copy_go.csv
N
=
10
Vgo
=
10 11 12 13 14 15 16 17 18 tip
bench_gov
:
syspread_test.go
>
go14.txt
;
for
i
in
`
seq
$N
`
;
do
go14
test
-bench
.
$<
>>
go14.txt
;
done
>
go15.txt
;
for
i
in
`
seq
$N
`
;
do
go15
test
-bench
.
$<
>>
go15.txt
;
done
>
go16.txt
;
for
i
in
`
seq
$N
`
;
do
go16
test
-bench
.
$<
>>
go16.txt
;
done
>
go17.txt
;
for
i
in
`
seq
$N
`
;
do
go17
test
-bench
.
$<
>>
go17.txt
;
done
>
go18.txt
;
for
i
in
`
seq
$N
`
;
do
go18
test
-bench
.
$<
>>
go18.txt
;
done
>
gotip.txt
;
for
i
in
`
seq
$N
`
;
do
go
test
-bench
.
$<
>>
gotip.txt
;
done
benchstat go14.txt go15.txt go16.txt go17.txt go18.txt gotip.txt
>
gov.txt
for
V
in
$(Vgo)
;
do
\
echo
$$
V ...
;
\
>
go
$$
V.txt
;
for
i
in
`
seq
$N
`
;
do
go
$$
V
test
-bench
Pread
$<
>>
go
$$
V.txt
;
done
\
;
\
done
benchstat
$(
patsubst
%,go%.txt,
$(Vgo)
)
>
gov.txt
t_syspread_go
:
t_syspread_go.go
go build
$<
...
...
go.txt
0 → 100644
View file @
902ef63c
...
go10.txt
0 → 100644
View file @
902ef63c
PASS
BenchmarkReadAt1 10000000 234 ns/op
BenchmarkPread1 10000000 224 ns/op
ok command-line-arguments 5.068s
PASS
BenchmarkReadAt1 10000000 234 ns/op
BenchmarkPread1 10000000 224 ns/op
ok command-line-arguments 5.074s
PASS
BenchmarkReadAt1 10000000 234 ns/op
BenchmarkPread1 10000000 224 ns/op
ok command-line-arguments 5.071s
PASS
BenchmarkReadAt1 10000000 234 ns/op
BenchmarkPread1 10000000 224 ns/op
ok command-line-arguments 5.066s
PASS
BenchmarkReadAt1 10000000 235 ns/op
BenchmarkPread1 10000000 224 ns/op
ok command-line-arguments 5.067s
PASS
BenchmarkReadAt1 10000000 234 ns/op
BenchmarkPread1 10000000 227 ns/op
ok command-line-arguments 5.088s
PASS
BenchmarkReadAt1 10000000 238 ns/op
BenchmarkPread1 10000000 228 ns/op
ok command-line-arguments 5.152s
PASS
BenchmarkReadAt1 10000000 241 ns/op
BenchmarkPread1 10000000 229 ns/op
ok command-line-arguments 5.183s
PASS
BenchmarkReadAt1 10000000 238 ns/op
BenchmarkPread1 10000000 227 ns/op
ok command-line-arguments 5.147s
PASS
BenchmarkReadAt1 10000000 239 ns/op
BenchmarkPread1 10000000 229 ns/op
ok command-line-arguments 5.170s
go11.txt
0 → 100644
View file @
902ef63c
PASS
BenchmarkReadAt1 10000000 242 ns/op
BenchmarkPread1 10000000 232 ns/op
ok command-line-arguments 5.241s
PASS
BenchmarkReadAt1 10000000 239 ns/op
BenchmarkPread1 10000000 229 ns/op
ok command-line-arguments 5.180s
PASS
BenchmarkReadAt1 10000000 242 ns/op
BenchmarkPread1 10000000 232 ns/op
ok command-line-arguments 5.237s
PASS
BenchmarkReadAt1 10000000 239 ns/op
BenchmarkPread1 10000000 229 ns/op
ok command-line-arguments 5.181s
PASS
BenchmarkReadAt1 10000000 241 ns/op
BenchmarkPread1 10000000 233 ns/op
ok command-line-arguments 5.243s
PASS
BenchmarkReadAt1 10000000 242 ns/op
BenchmarkPread1 10000000 230 ns/op
ok command-line-arguments 5.212s
PASS
BenchmarkReadAt1 10000000 243 ns/op
BenchmarkPread1 10000000 230 ns/op
ok command-line-arguments 5.225s
PASS
BenchmarkReadAt1 10000000 241 ns/op
BenchmarkPread1 10000000 234 ns/op
ok command-line-arguments 5.243s
PASS
BenchmarkReadAt1 10000000 239 ns/op
BenchmarkPread1 10000000 232 ns/op
ok command-line-arguments 5.212s
PASS
BenchmarkReadAt1 10000000 245 ns/op
BenchmarkPread1 10000000 231 ns/op
ok command-line-arguments 5.274s
go12.txt
0 → 100644
View file @
902ef63c
PASS
BenchmarkReadAt1 10000000 254 ns/op
BenchmarkPread1 10000000 242 ns/op
ok command-line-arguments 5.490s
PASS
BenchmarkReadAt1 10000000 251 ns/op
BenchmarkPread1 10000000 240 ns/op
ok command-line-arguments 5.425s
PASS
BenchmarkReadAt1 10000000 253 ns/op
BenchmarkPread1 10000000 244 ns/op
ok command-line-arguments 5.489s
PASS
BenchmarkReadAt1 10000000 251 ns/op
BenchmarkPread1 10000000 243 ns/op
ok command-line-arguments 5.463s
PASS
BenchmarkReadAt1 10000000 254 ns/op
BenchmarkPread1 10000000 240 ns/op
ok command-line-arguments 5.464s
PASS
BenchmarkReadAt1 10000000 252 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.452s
PASS
BenchmarkReadAt1 10000000 251 ns/op
BenchmarkPread1 10000000 242 ns/op
ok command-line-arguments 5.450s
PASS
BenchmarkReadAt1 10000000 253 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.458s
PASS
BenchmarkReadAt1 10000000 251 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.433s
PASS
BenchmarkReadAt1 10000000 249 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.421s
go13.txt
0 → 100644
View file @
902ef63c
PASS
BenchmarkReadAt1 10000000 250 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.434s
PASS
BenchmarkReadAt1 10000000 257 ns/op
BenchmarkPread1 10000000 243 ns/op
ok command-line-arguments 5.526s
PASS
BenchmarkReadAt1 10000000 254 ns/op
BenchmarkPread1 10000000 242 ns/op
ok command-line-arguments 5.488s
PASS
BenchmarkReadAt1 10000000 259 ns/op
BenchmarkPread1 10000000 243 ns/op
ok command-line-arguments 5.538s
PASS
BenchmarkReadAt1 10000000 252 ns/op
BenchmarkPread1 10000000 241 ns/op
ok command-line-arguments 5.459s
PASS
BenchmarkReadAt1 10000000 253 ns/op
BenchmarkPread1 10000000 240 ns/op
ok command-line-arguments 5.444s
PASS
BenchmarkReadAt1 10000000 252 ns/op
BenchmarkPread1 10000000 238 ns/op
ok command-line-arguments 5.425s
PASS
BenchmarkReadAt1 10000000 252 ns/op
BenchmarkPread1 10000000 239 ns/op
ok command-line-arguments 5.421s
PASS
BenchmarkReadAt1 10000000 250 ns/op
BenchmarkPread1 10000000 240 ns/op
ok command-line-arguments 5.433s
PASS
BenchmarkReadAt1 10000000 251 ns/op
BenchmarkPread1 10000000 237 ns/op
ok command-line-arguments 5.408s
go14.txt
View file @
902ef63c
PASS
BenchmarkReadAt1 5000000 27
0
ns/op
BenchmarkPread1 5000000 2
58
ns/op
ok command-line-arguments 3.2
1
1s
BenchmarkReadAt1 5000000 27
1
ns/op
BenchmarkPread1 5000000 2
62
ns/op
ok command-line-arguments 3.2
3
1s
PASS
BenchmarkReadAt1 5000000 2
68
ns/op
BenchmarkPread1 5000000 2
58
ns/op
ok command-line-arguments 3.
189
s
BenchmarkReadAt1 5000000 2
79
ns/op
BenchmarkPread1 5000000 2
61
ns/op
ok command-line-arguments 3.
276
s
PASS
BenchmarkReadAt1 5000000 2
69
ns/op
BenchmarkPread1 5000000 2
58
ns/op
ok command-line-arguments 3.
192
s
BenchmarkReadAt1 5000000 2
70
ns/op
BenchmarkPread1 5000000 2
72
ns/op
ok command-line-arguments 3.
270
s
PASS
BenchmarkReadAt1 5000000 2
68
ns/op
BenchmarkReadAt1 5000000 2
73
ns/op
BenchmarkPread1 5000000 259 ns/op
ok command-line-arguments 3.
188
s
ok command-line-arguments 3.
219
s
PASS
BenchmarkReadAt1 5000000 2
68
ns/op
BenchmarkPread1 5000000 2
58
ns/op
ok command-line-arguments 3.
186
s
BenchmarkReadAt1 5000000 2
74
ns/op
BenchmarkPread1 5000000 2
64
ns/op
ok command-line-arguments 3.
255
s
PASS
BenchmarkReadAt1 5000000 2
67
ns/op
BenchmarkPread1 5000000 26
0
ns/op
ok command-line-arguments 3.
193
s
BenchmarkReadAt1 5000000 2
73
ns/op
BenchmarkPread1 5000000 26
5
ns/op
ok command-line-arguments 3.
254
s
PASS
BenchmarkReadAt1 5000000 27
2
ns/op
BenchmarkPread1 5000000 2
58
ns/op
ok command-line-arguments 3.2
03
s
BenchmarkReadAt1 5000000 27
4
ns/op
BenchmarkPread1 5000000 2
61
ns/op
ok command-line-arguments 3.2
36
s
PASS
BenchmarkReadAt1 5000000 2
68
ns/op
BenchmarkPread1 5000000 2
59
ns/op
ok command-line-arguments 3.
192
s
BenchmarkReadAt1 5000000 2
71
ns/op
BenchmarkPread1 5000000 2
63
ns/op
ok command-line-arguments 3.
229
s
PASS
BenchmarkReadAt1 5000000
267
ns/op
BenchmarkPread1 5000000
260
ns/op
ok command-line-arguments 3.
191
s
BenchmarkReadAt1 5000000
305
ns/op
BenchmarkPread1 5000000
356
ns/op
ok command-line-arguments 3.
946
s
PASS
BenchmarkReadAt1 5000000 2
69
ns/op
BenchmarkPread1 5000000 25
8
ns/op
ok command-line-arguments 3.
187
s
BenchmarkReadAt1 5000000 2
85
ns/op
BenchmarkPread1 5000000 25
9
ns/op
ok command-line-arguments 3.
320
s
go15.txt
View file @
902ef63c
PASS
BenchmarkReadAt1-4 5000000 2
7
6 ns/op
BenchmarkReadAt1-4 5000000 2
8
6 ns/op
BenchmarkPread1-4 5000000 266 ns/op
ok command-line-arguments 3.
26
5s
ok command-line-arguments 3.
32
5s
PASS
BenchmarkReadAt1-4 5000000 27
6
ns/op
BenchmarkPread1-4 5000000 26
3
ns/op
ok command-line-arguments 3.2
51
s
BenchmarkReadAt1-4 5000000 27
7
ns/op
BenchmarkPread1-4 5000000 26
7
ns/op
ok command-line-arguments 3.2
86
s
PASS
BenchmarkReadAt1-4 5000000 2
72
ns/op
BenchmarkPread1-4 5000000 26
1
ns/op
ok command-line-arguments 3.
225
s
BenchmarkReadAt1-4 5000000 2
80
ns/op
BenchmarkPread1-4 5000000 26
6
ns/op
ok command-line-arguments 3.
302
s
PASS
BenchmarkReadAt1-4 5000000 275 ns/op
BenchmarkPread1-4 5000000 261 ns/op
ok command-line-arguments 3.237s
PASS
BenchmarkReadAt1-4 5000000 274 ns/op
BenchmarkPread1-4 5000000 264 ns/op
ok command-line-arguments 3.250s
PASS
BenchmarkReadAt1-4 5000000 275 ns/op
BenchmarkPread1-4 5000000 261 ns/op
ok command-line-arguments 3.244s
ok command-line-arguments 3.258s
PASS
BenchmarkReadAt1-4 5000000 27
2
ns/op
BenchmarkPread1-4 5000000 26
0
ns/op
ok command-line-arguments 3.2
24
s
BenchmarkReadAt1-4 5000000 27
8
ns/op
BenchmarkPread1-4 5000000 26
6
ns/op
ok command-line-arguments 3.2
87
s
PASS
BenchmarkReadAt1-4 5000000 27
4
ns/op
BenchmarkPread1-4 5000000 26
1
ns/op
ok command-line-arguments 3.2
35
s
BenchmarkReadAt1-4 5000000 27
6
ns/op
BenchmarkPread1-4 5000000 26
4
ns/op
ok command-line-arguments 3.2
63
s
PASS
BenchmarkReadAt1-4 5000000 27
3
ns/op
BenchmarkReadAt1-4 5000000 27
9
ns/op
BenchmarkPread1-4 5000000 265 ns/op
ok command-line-arguments 3.244s
ok command-line-arguments 3.279s
PASS
BenchmarkReadAt1-4 5000000 277 ns/op
BenchmarkPread1-4 5000000 263 ns/op
ok command-line-arguments 3.268s
PASS
BenchmarkReadAt1-4 5000000 278 ns/op
BenchmarkPread1-4 5000000 264 ns/op
ok command-line-arguments 3.281s
PASS
BenchmarkReadAt1-4 5000000 27
3
ns/op
BenchmarkPread1-4 5000000 26
1
ns/op
ok command-line-arguments 3.2
33
s
BenchmarkReadAt1-4 5000000 27
9
ns/op
BenchmarkPread1-4 5000000 26
7
ns/op
ok command-line-arguments 3.2
96
s
go16.txt
View file @
902ef63c
PASS
BenchmarkReadAt1-4 5000000 2
78
ns/op
BenchmarkPread1-4 5000000 26
8
ns/op
ok command-line-arguments 3.3
04
s
BenchmarkReadAt1-4 5000000 2
82
ns/op
BenchmarkPread1-4 5000000 26
9
ns/op
ok command-line-arguments 3.3
32
s
PASS
BenchmarkReadAt1-4 5000000 27
8
ns/op
BenchmarkPread1-4 5000000 27
8
ns/op
ok command-line-arguments 3.3
58
s
BenchmarkReadAt1-4 5000000 27
7
ns/op
BenchmarkPread1-4 5000000 27
0
ns/op
ok command-line-arguments 3.3
00
s
PASS
BenchmarkReadAt1-4 5000000 27
8
ns/op
BenchmarkPread1-4 5000000 2
72
ns/op
ok command-line-arguments 3.3
22
s
BenchmarkReadAt1-4 5000000 27
9
ns/op
BenchmarkPread1-4 5000000 2
67
ns/op
ok command-line-arguments 3.3
00
s
PASS
BenchmarkReadAt1-4 5000000 2
76
ns/op
BenchmarkPread1-4 5000000 2
65
ns/op
ok command-line-arguments 3.
265
s
BenchmarkReadAt1-4 5000000 2
84
ns/op
BenchmarkPread1-4 5000000 2
73
ns/op
ok command-line-arguments 3.
356
s
PASS
BenchmarkReadAt1-4 5000000 28
1
ns/op
BenchmarkPread1-4 5000000 2
67
ns/op
ok command-line-arguments 3.3
07
s
BenchmarkReadAt1-4 5000000 28
3
ns/op
BenchmarkPread1-4 5000000 2
71
ns/op
ok command-line-arguments 3.3
40
s
PASS
BenchmarkReadAt1-4 5000000 2
76
ns/op
BenchmarkPread1-4 5000000 2
66
ns/op
ok command-line-arguments 3.
276
s
BenchmarkReadAt1-4 5000000 2
85
ns/op
BenchmarkPread1-4 5000000 2
80
ns/op
ok command-line-arguments 3.
409
s
PASS
BenchmarkReadAt1-4 5000000 2
79
ns/op
BenchmarkPread1-4 5000000 2
66
ns/op
ok command-line-arguments 3.
294
s
BenchmarkReadAt1-4 5000000 2
81
ns/op
BenchmarkPread1-4 5000000 2
73
ns/op
ok command-line-arguments 3.
346
s
PASS
BenchmarkReadAt1-4 5000000 2
77
ns/op
BenchmarkPread1-4 5000000 2
66
ns/op
ok command-line-arguments 3.
285
s
BenchmarkReadAt1-4 5000000 2
81
ns/op
BenchmarkPread1-4 5000000 2
71
ns/op
ok command-line-arguments 3.
333
s
PASS
BenchmarkReadAt1-4 5000000 2
76
ns/op
BenchmarkPread1-4 5000000 26
6
ns/op
ok command-line-arguments 3.
281
s
BenchmarkReadAt1-4 5000000 2
80
ns/op
BenchmarkPread1-4 5000000 26
9
ns/op
ok command-line-arguments 3.
318
s
PASS
BenchmarkReadAt1-4 5000000 2
75
ns/op
BenchmarkPread1-4 5000000 2
64
ns/op
ok command-line-arguments 3.
261
s
BenchmarkReadAt1-4 5000000 2
80
ns/op
BenchmarkPread1-4 5000000 2
73
ns/op
ok command-line-arguments 3.
343
s
go17.txt
View file @
902ef63c
BenchmarkReadAt1-4 5000000 27
2
ns/op
BenchmarkPread1-4 5000000 26
0
ns/op
BenchmarkReadAt1-4 5000000 27
3
ns/op
BenchmarkPread1-4 5000000 26
2
ns/op
PASS
ok command-line-arguments 3.2
16
s
BenchmarkReadAt1-4 5000000 27
6
ns/op
BenchmarkPread1-4 5000000 26
6
ns/op
ok command-line-arguments 3.2
32
s
BenchmarkReadAt1-4 5000000 27
7
ns/op
BenchmarkPread1-4 5000000 26
2
ns/op
PASS
ok command-line-arguments 3.2
71
s
ok command-line-arguments 3.2
58
s
BenchmarkReadAt1-4 5000000 272 ns/op
BenchmarkPread1-4 5000000 26
0
ns/op
BenchmarkPread1-4 5000000 26
4
ns/op
PASS
ok command-line-arguments 3.2
10
s
BenchmarkReadAt1-4 5000000 2
74
ns/op
BenchmarkPread1-4 5000000 26
1
ns/op
ok command-line-arguments 3.2
33
s
BenchmarkReadAt1-4 5000000 2
82
ns/op
BenchmarkPread1-4 5000000 26
5
ns/op
PASS
ok command-line-arguments 3.230s
BenchmarkReadAt1-4 5000000 276 ns/op
BenchmarkPread1-4 5000000 267 ns/op
PASS
ok command-line-arguments 3.284s
BenchmarkReadAt1-4 5000000 274 ns/op
BenchmarkPread1-4 5000000 263 ns/op
ok command-line-arguments 3.299s
BenchmarkReadAt1-4 5000000 278 ns/op
BenchmarkPread1-4 5000000 265 ns/op
PASS
ok command-line-arguments 3.2
39
s
BenchmarkReadAt1-4 5000000 27
5
ns/op
BenchmarkPread1-4 5000000 26
0
ns/op
ok command-line-arguments 3.2
76
s
BenchmarkReadAt1-4 5000000 27
7
ns/op
BenchmarkPread1-4 5000000 26
2
ns/op
PASS
ok command-line-arguments 3.2
31
s
BenchmarkReadAt1-4 5000000 27
2
ns/op
BenchmarkPread1-4 5000000 26
0
ns/op
ok command-line-arguments 3.2
46
s
BenchmarkReadAt1-4 5000000 27
7
ns/op
BenchmarkPread1-4 5000000 26
6
ns/op
PASS
ok command-line-arguments 3.2
16
s
ok command-line-arguments 3.2
77
s
BenchmarkReadAt1-4 5000000 274 ns/op
BenchmarkPread1-4 5000000 26
2
ns/op
BenchmarkPread1-4 5000000 26
3
ns/op
PASS
ok command-line-arguments 3.24
3
s
ok command-line-arguments 3.24
1
s
BenchmarkReadAt1-4 5000000 273 ns/op
BenchmarkPread1-4 5000000 261 ns/op
PASS
ok command-line-arguments 3.221s
ok command-line-arguments 3.226s
BenchmarkReadAt1-4 5000000 275 ns/op
BenchmarkPread1-4 5000000 265 ns/op
PASS
ok command-line-arguments 3.258s
go18.txt
View file @
902ef63c
BenchmarkReadAt1-4 5000000 265 ns/op
BenchmarkPread1-4 5000000 25
4
ns/op
BenchmarkPread1-4 5000000 25
5
ns/op
PASS
ok command-line-arguments 3.1
31
s
BenchmarkReadAt1-4 5000000 26
5
ns/op
BenchmarkPread1-4 5000000 25
4
ns/op
ok command-line-arguments 3.1
45
s
BenchmarkReadAt1-4 5000000 26
7
ns/op
BenchmarkPread1-4 5000000 25
5
ns/op
PASS
ok command-line-arguments 3.1
3
3s
BenchmarkReadAt1-4 5000000 26
2
ns/op
ok command-line-arguments 3.1
4
3s
BenchmarkReadAt1-4 5000000 26
3
ns/op
BenchmarkPread1-4 5000000 253 ns/op
PASS
ok command-line-arguments 3.11
5
s
BenchmarkReadAt1-4 5000000 26
2
ns/op
BenchmarkPread1-4 5000000 25
1
ns/op
ok command-line-arguments 3.11
7
s
BenchmarkReadAt1-4 5000000 26
1
ns/op
BenchmarkPread1-4 5000000 25
7
ns/op
PASS
ok command-line-arguments 3.1
00
s
BenchmarkReadAt1-4 5000000 26
4
ns/op
BenchmarkPread1-4 5000000 25
3
ns/op
ok command-line-arguments 3.1
25
s
BenchmarkReadAt1-4 5000000 26
7
ns/op
BenchmarkPread1-4 5000000 25
7
ns/op
PASS
ok command-line-arguments 3.1
27
s
BenchmarkReadAt1-4 5000000 26
2
ns/op
BenchmarkPread1-4 5000000 25
2
ns/op
ok command-line-arguments 3.1
62
s
BenchmarkReadAt1-4 5000000 26
3
ns/op
BenchmarkPread1-4 5000000 25
9
ns/op
PASS
ok command-line-arguments 3.1
05
s
BenchmarkReadAt1-4 5000000 2
6
2 ns/op
BenchmarkPread1-4 5000000 2
49
ns/op
ok command-line-arguments 3.1
51
s
BenchmarkReadAt1-4 5000000 2
7
2 ns/op
BenchmarkPread1-4 5000000 2
56
ns/op
PASS
ok command-line-arguments 3.
087
s
BenchmarkReadAt1-4 5000000 26
2
ns/op
ok command-line-arguments 3.
178
s
BenchmarkReadAt1-4 5000000 26
1
ns/op
BenchmarkPread1-4 5000000 253 ns/op
PASS
ok command-line-arguments 3.10
8
s
BenchmarkReadAt1-4 5000000 26
3
ns/op
BenchmarkPread1-4 5000000 2
5
0 ns/op
ok command-line-arguments 3.10
5
s
BenchmarkReadAt1-4 5000000 26
5
ns/op
BenchmarkPread1-4 5000000 2
6
0 ns/op
PASS
ok command-line-arguments 3.
098
s
BenchmarkReadAt1-4 5000000 26
1
ns/op
BenchmarkPread1-4 5000000 25
1
ns/op
ok command-line-arguments 3.
163
s
BenchmarkReadAt1-4 5000000 26
5
ns/op
BenchmarkPread1-4 5000000 25
4
ns/op
PASS
ok command-line-arguments 3.
097
s
ok command-line-arguments 3.
134
s
gotip.txt
View file @
902ef63c
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 323 ns/op
BenchmarkPread1-4 5000000 250 ns/op
PASS
ok command-line-arguments 3.455s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 322 ns/op
BenchmarkPread1-4 5000000 250 ns/op
BenchmarkReadAt1-4 5000000 330 ns/op
BenchmarkPread1-4 5000000 254 ns/op
PASS
ok command-line-arguments 3.
45
3s
ok command-line-arguments 3.
51
3s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 327 ns/op
BenchmarkPread1-4 5000000 25
0
ns/op
BenchmarkPread1-4 5000000 25
2
ns/op
PASS
ok command-line-arguments 3.4
85
s
ok command-line-arguments 3.4
93
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
3
ns/op
BenchmarkPread1-4 5000000 25
1
ns/op
BenchmarkReadAt1-4 5000000 32
5
ns/op
BenchmarkPread1-4 5000000 25
2
ns/op
PASS
ok command-line-arguments 3.4
65
s
ok command-line-arguments 3.4
82
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
2
ns/op
BenchmarkPread1-4 5000000 25
0
ns/op
BenchmarkReadAt1-4 5000000 32
4
ns/op
BenchmarkPread1-4 5000000 25
4
ns/op
PASS
ok command-line-arguments 3.4
52
s
ok command-line-arguments 3.4
86
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
3
ns/op
BenchmarkPread1-4 5000000 25
2
ns/op
BenchmarkReadAt1-4 5000000 32
7
ns/op
BenchmarkPread1-4 5000000 25
3
ns/op
PASS
ok command-line-arguments 3.
467
s
ok command-line-arguments 3.
501
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
3
ns/op
BenchmarkPread1-4 5000000 25
0
ns/op
BenchmarkReadAt1-4 5000000 32
8
ns/op
BenchmarkPread1-4 5000000 25
7
ns/op
PASS
ok command-line-arguments 3.
465
s
ok command-line-arguments 3.
526
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
3
ns/op
BenchmarkReadAt1-4 5000000 32
5
ns/op
BenchmarkPread1-4 5000000 250 ns/op
PASS
ok command-line-arguments 3.4
61
s
ok command-line-arguments 3.4
78
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
2
ns/op
BenchmarkReadAt1-4 5000000 32
8
ns/op
BenchmarkPread1-4 5000000 251 ns/op
PASS
ok command-line-arguments 3.
461
s
ok command-line-arguments 3.
508
s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 32
5
ns/op
BenchmarkReadAt1-4 5000000 32
9
ns/op
BenchmarkPread1-4 5000000 252 ns/op
PASS
ok command-line-arguments 3.483s
ok command-line-arguments 3.496s
goos: linux
goarch: amd64
BenchmarkReadAt1-4 5000000 327 ns/op
BenchmarkPread1-4 5000000 254 ns/op
PASS
ok command-line-arguments 3.507s
gov.txt
View file @
902ef63c
name \ time/op go14.txt go15.txt go16.txt go17.txt go18.txt gotip.txt
ReadAt1 2
68ns ± 1
%
Pread1 2
59ns ± 1
%
ReadAt1-4
274ns ± 1% 277ns ± 1% 274ns ± 1% 263ns ± 1% 323ns ± 0
%
Pread1-4
262ns ± 1% 266ns ± 1% 262ns ± 2% 252ns ± 1% 251ns ± 1
%
name \ time/op go1
0.txt go11.txt go12.txt go13.txt go1
4.txt go15.txt go16.txt go17.txt go18.txt gotip.txt
ReadAt1 2
36ns ± 2% 241ns ± 2% 252ns ± 1% 253ns ± 2% 274ns ± 4
%
Pread1 2
26ns ± 1% 231ns ± 1% 241ns ± 1% 240ns ± 1% 263ns ± 3
%
ReadAt1-4
278ns ± 1% 281ns ± 1% 276ns ± 2% 265ns ± 3% 327ns ± 1
%
Pread1-4
265ns ± 1% 271ns ± 1% 264ns ± 1% 256ns ± 2% 253ns ± 2
%
syspread_test.go
View file @
902ef63c
...
...
@@ -32,7 +32,7 @@ func xreadat(f *os.File, buf []byte, offset int64) {
}
// setupXdat4K setups /dev/shm/x.dat with 4K content
func
setupXdat4K
(
t
testing
.
TB
)
*
os
.
File
{
func
setupXdat4K
(
t
interface
{
Fatal
(
...
interface
{})}
/* = testing.TB */
)
*
os
.
File
{
// setup 4K file on a tmpfs
f
,
err
:=
os
.
Create
(
"/dev/shm/x.dat"
)
if
err
!=
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