mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 04:34:15 +08:00
55bf9b749d
People are interested in measuring the hash performance on non-x86_64 architectures. Add option to do time-based measurements (in nanoseconds) in case there's no support for clock-based measurements. $ ./hash-speedtest --cycles Block size: 4096 Iterations: 100000 Implementation: builtin Units: cycles NULL-NOP: cycles: 43035633, cycles/i 430 NULL-MEMCPY: cycles: 72478624, cycles/i 724 CRC32C: cycles: 181712982, cycles/i 1817 XXHASH: cycles: 136251305, cycles/i 1362 SHA256: cycles: 10758567410, cycles/i 107585 BLAKE2b: cycles: 2249704806, cycles/i 22497 $ ./hash-speedtest --time Block size: 4096 Iterations: 100000 Implementation: builtin Units: nsecs NULL-NOP: nsecs: 12459033, nsecs/i 124 NULL-MEMCPY: nsecs: 20687845, nsecs/i 206 CRC32C: nsecs: 52648264, nsecs/i 526 XXHASH: nsecs: 39591766, nsecs/i 395 SHA256: nsecs: 3079668837, nsecs/i 30796 BLAKE2b: nsecs: 644766582, nsecs/i 6447 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 |