diff options
author | isaacs <i@izs.me> | 2013-02-12 09:33:37 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-02-20 02:14:37 +0400 |
commit | 8c719f7c71ed415d7c5e2952782d1352d14a9389 (patch) | |
tree | ebac1480c9dbaf47d12f0baaef3c9353da951539 /benchmark | |
parent | 8a3f52170e1d5b0539f979894dc76a48d6d54a46 (diff) |
bench: Make io.c output easier to read
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/io.c b/benchmark/io.c index 66d90d5a1dc..3b31eb02a9a 100644 --- a/benchmark/io.c +++ b/benchmark/io.c @@ -45,7 +45,6 @@ static void writetest(int size, size_t bsize) for (i = 0; i < size; i += bsize) { int rv = write(fd, buf, bsize); - if (c++ % 2000 == 0) fprintf(stderr, "."); if (rv < 0) { perror("write failed"); exit(254); @@ -66,7 +65,7 @@ static void writetest(int size, size_t bsize) elapsed = (end - start) / 1e6; mbps = ((tsize/elapsed)) / 1048576; - fprintf(stderr, "\nWrote %d bytes in %03fs using %ld byte buffers: %03fmB/s\n", size, elapsed, bsize, mbps); + fprintf(stderr, "Wrote %d bytes in %03fs using %ld byte buffers: %03f\n", size, elapsed, bsize, mbps); } void readtest(int size, size_t bsize) |