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
cd2cd093
Commit
cd2cd093
authored
Oct 13, 2017
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X bench_disk: Add std bench format
parent
98c8aaac
Changes
1
Show 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
...
...
Kirill Smelkov
@kirr
mentioned in commit
ee6c2796
·
Jul 12, 2018
mentioned in commit
ee6c2796
mentioned in commit ee6c27965586f214bf5af865fd60fddbc87b3253
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