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
cd2cd093
Commit
cd2cd093
authored
Oct 13, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X bench_disk: Add std bench format
parent
98c8aaac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
go/neo/t/neotest
go/neo/t/neotest
+14
-2
No files found.
go/neo/t/neotest
View file @
cd2cd093
...
...
@@ -744,8 +744,19 @@ bench_cpu() {
# bench_disk - benchmark direct (uncached) and cached random reads
bench_disk
()
{
# ioping2bench <topic> - converts timings from ioping to std benchmark
ioping2bench
()
{
# XXX normalize all units to µs (benchstat treats time and µs as different - XXX better improve benchstat)
sed
-u
-e
\
"s|^min/avg/max/mdev =
\(
[0-9.]
\+\)
\(
[^ ]
\+\)
/
\(
[0-9.]
\+\)
\(
[^ ]
\+\)
/
\(
[0-9.]
\+\)\+
\(
[^ ]
\+\)
/
\(
[0-9.]
\+\)
\(
[^ ]
\+\)\$
|&
\n\
Benchmark
$1
-min 1
\\
1
\\
2/op
\n\
Benchmark
$1
-avg 1
\\
3
\\
4/op
\
|"
}
echo
-e
"
\n
*** disk: random direct (no kernel cache) 4K-read latency"
nrun ioping
-D
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
nrun ioping
-D
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
|
\
ioping2bench
"
`
hostname
`
/disk/randread/direct/4K"
echo
-e
"
\n
*** disk: random cached 4K-read latency"
# warmup so kernel puts the file into pagecache
...
...
@@ -753,7 +764,8 @@ bench_disk() {
cat
ioping.tmp
>
/dev/null
done
nrun ioping
-C
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
nrun ioping
-C
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
|
\
ioping2bench
"
`
hostname
`
/disk/randread/pagecache/4K"
}
#hashfunc=sha1
...
...
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