btrfs-progs/crypto
David Sterba 785073f658 btrfs-progs: crypto: add hash speedtest utility
A simple tool to microbenchmark performance of the hashes. Uses rdtsc
for timing, so works only on x86_64.

 $ make hash-speedtest
 $ ./hash-speedtest [iterations]

   Block size: 4096
   Iterations: 100000

       NULL-NOP: cycles:     56061823, c/i      560
    NULL-MEMCPY: cycles:     61296469, c/i      612
	 CRC32C: cycles:    179961796, c/i     1799
	 XXHASH: cycles:    138434590, c/i     1384

Signed-off-by: David Sterba <dsterba@suse.com>
2019-11-18 19:20:03 +01:00
..
crc32c.c btrfs-progs: move crc32c implementation to crypto/ 2019-11-18 19:20:02 +01:00
crc32c.h btrfs-progs: move crc32c implementation to crypto/ 2019-11-18 19:20:02 +01:00
hash-speedtest.c btrfs-progs: crypto: add hash speedtest utility 2019-11-18 19:20:03 +01:00
hash.c btrfs-progs: add crc32c to hash wrappers 2019-11-18 19:20:03 +01:00
hash.h btrfs-progs: add crc32c to hash wrappers 2019-11-18 19:20:03 +01:00
sha-private.h btrfs-progs: move sha256 from tests to crypto/ 2019-11-18 19:20:02 +01:00
sha.h btrfs-progs: move sha256 from tests to crypto/ 2019-11-18 19:20:02 +01:00
sha224-256.c btrfs-progs: move sha256 from tests to crypto/ 2019-11-18 19:20:02 +01:00
xxhash.c btrfs-progs: add xxhash sources v0.7.1 2019-10-25 14:35:39 +02:00
xxhash.h btrfs-progs: add xxhash sources v0.7.1 2019-10-25 14:35:39 +02:00