Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Linhuber
disk-benchmark
Commits
95f226ad
Commit
95f226ad
authored
Feb 01, 2021
by
Matthias Linhuber
Browse files
Fix filesizes was set to MiB insted of GiB:w
parent
cc2b82d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmark.py
View file @
95f226ad
...
...
@@ -28,10 +28,10 @@ QUICK_TEST_PARAM_LIST = [
]
FILESIZES
=
{
"1G"
:
2
0
,
"2G"
:
2
1
,
"4G"
:
2
2
,
"8G"
:
2
3
"1G"
:
3
0
,
"2G"
:
3
1
,
"4G"
:
3
2
,
"8G"
:
3
3
}
...
...
@@ -60,6 +60,7 @@ class TestRun():
float
Output of the current `dd` command.
"""
print
(
"Execute measurements with blocksize "
+
str
(
self
.
bs
))
output
=
subprocess
.
run
(
[
'dd'
,
'if=/dev/zero'
,
'of='
+
self
.
outfile
,
'bs='
+
str
(
self
.
bs
),
'count='
+
str
(
self
.
count
)
...
...
@@ -310,7 +311,7 @@ def main():
if
args
.
full
or
args
.
fileSize
is
not
None
:
if
args
.
fileSize
is
None
:
fileSizeExponent
=
2
0
fileSizeExponent
=
3
0
else
:
fileSizeExponent
=
FILESIZES
[
args
.
fileSize
]
...
...
Write
Preview
Supports
Markdown
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