summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2015-10-23 08:19:30 -0600
committerAaron Ball <nullspoon@iohq.net>2015-10-23 08:19:30 -0600
commitab8cc1625a1b0516f8d613258f94791df47e7c08 (patch)
tree9bc16a577abb796d3042b1cf4b816e476c2c0eba
parent60406733b9340c26858384c7c45c261911386cae (diff)
downloaddd-bench-ab8cc1625a1b0516f8d613258f94791df47e7c08.tar.gz
dd-bench-ab8cc1625a1b0516f8d613258f94791df47e7c08.tar.xz
Fixed 1KB tests duplicate
Didn't realize it was later on in the tests. Moved it to the top since it's the smallest blocksize, and we're ordering by those.
-rwxr-xr-xdd-bench.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/dd-bench.sh b/dd-bench.sh
index be43d24..094782e 100755
--- a/dd-bench.sh
+++ b/dd-bench.sh
@@ -101,13 +101,16 @@ function main {
path="${1}"
# Perform benchmark tests
+
+ # Note that the 1KB block tests write 10 and 80 megabyte files rather than
+ # the previous 1G, 8G, etc due to the speed of the typical 1KB block size
+ # test. Also note that the 200 MB test is skipped because it takes far too
+ # long.
log "*** Testing 1 KB blocks"
write_bench "${path}" "1K" "10240"
read_bench "${path}" "1K" "10240"
write_bench "${path}" "1K" "81920"
read_bench "${path}" "1K" "81920"
- write_bench "${path}" "1K" "204800"
- read_bench "${path}" "1K" "204800"
log "*** Testing 1 MB blocks"
write_bench "${path}" "1M" "1024"
@@ -141,16 +144,6 @@ function main {
write_bench "${path}" "1G" "20"
read_bench "${path}" "1G" "20"
- # Note that the 1KB block tests write 10 and 80 megabyte files rather than
- # the previous 1G, 8G, etc due to the speed of the typical 1KB block size
- # test. Also note that the 200 MB test is skipped because it takes far too
- # long.
- log "*** Testing 1 KB blocks"
- write_bench "${path}" "1K" "10240"
- read_bench "${path}" "1K" "10240"
- write_bench "${path}" "1K" "81920"
- read_bench "${path}" "1K" "81920"
-
# Attempt cleanup only if the destination test path is a file and not a
# device (no sense in trying to remove a device).
if [[ -f "${path}" ]]; then

Generated by cgit