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>
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;