Get the crctest results properly aligned
authorJens Axboe <axboe@fb.com>
Tue, 24 Jun 2014 16:12:47 +0000 (10:12 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 24 Jun 2014 16:12:47 +0000 (10:12 -0600)
Before:

md5: 534.03 MB/sec
crc64: 392.31 MB/sec
crc32: 352.36 MB/sec
crc32c: 8225.43 MB/sec
crc16: 384.46 MB/sec
crc7: 386.79 MB/sec
sha1: 381.15 MB/sec
sha256: 186.47 MB/sec
sha512: 303.18 MB/sec
xxhash: 6329.90 MB/sec

After:

md5:   548.59 MB/sec
crc64:   381.45 MB/sec
crc32:   347.89 MB/sec
crc32c:  8577.36 MB/sec
crc16:   396.56 MB/sec
crc7:   396.72 MB/sec
sha1:   385.87 MB/sec
sha256:   206.60 MB/sec
sha512:   314.62 MB/sec
xxhash:  6293.64 MB/sec

Signed-off-by: Jens Axboe <axboe@fb.com>
crc/test.c

index 3773b714782adf9e2eab1eb81fda731ba897a1bf..3ce717a0d7751cde0879a7507ac0d75e05e3c464 100644 (file)
@@ -373,7 +373,7 @@ int fio_crctest(const char *type)
                usec = t[i].fn();
                mb_sec = (double) mb / (double) usec;
                mb_sec /= (1.024 * 1.024);
-               printf("%s:\t%.2f MB/sec\n", t[i].name, mb_sec);
+               printf("%s:\t%8.2f MB/sec\n", t[i].name, mb_sec);
        }
 
        return 0;