mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 04:34:15 +08:00
133dd6c6c3
Calculate the estimated throughput as a number that's comparable across machines. $ ./hash-speedtest --cycles Block size: 4096 Iterations: 100000 Implementation: builtin Units: cycles NULL-NOP: cycles: 42928902, cycles/i 429 NULL-MEMCPY: cycles: 73014868, cycles/i 730, 18651.186 MiB/s CRC32C: cycles: 182293290, cycles/i 1822, 7470.579 MiB/s XXHASH: cycles: 138085981, cycles/i 1380, 9862.272 MiB/s SHA256: cycles: 10576270837, cycles/i 105762, 128.764 MiB/s BLAKE2b: cycles: 2263761293, cycles/i 22637, 601.585 MiB/s $ ./hash-speedtest --time Block size: 4096 Iterations: 100000 Implementation: builtin Units: nsecs NULL-NOP: nsecs: 12164607, nsecs/i 121 NULL-MEMCPY: nsecs: 20423641, nsecs/i 204, 19095.518 MiB/s CRC32C: nsecs: 51972794, nsecs/i 519, 7503.926 MiB/s XXHASH: nsecs: 38935164, nsecs/i 389, 10016.651 MiB/s SHA256: nsecs: 3030944497, nsecs/i 30309, 128.673 MiB/s BLAKE2b: nsecs: 648489262, nsecs/i 6484, 601.398 MiB/s Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
blake2-impl.h | ||
blake2.h | ||
blake2b-ref.c | ||
crc32c.c | ||
crc32c.h | ||
hash-speedtest.c | ||
hash-vectest.c | ||
hash.c | ||
hash.h | ||
sha224-256.c | ||
sha-private.h | ||
sha.h | ||
xxhash.c | ||
xxhash.h |