btrfs-progs/crypto
David Sterba 133dd6c6c3 btrfs-progs: crypto: print throughput in hash-speedtest
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>
2021-05-26 23:09:52 +02:00
..
blake2-impl.h btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +01:00
blake2.h btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +01:00
blake2b-ref.c btrfs-progs: add blake2b reference implementation 2019-11-18 19:21:05 +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: print throughput in hash-speedtest 2021-05-26 23:09:52 +02:00
hash-vectest.c btrfs-progs: crypto: add test vectors 2021-03-24 22:20:19 +01:00
hash.c btrfs-progs: build: add support for libkcapi as crypto backend 2020-06-09 22:19:07 +02:00
hash.h btrfs-progs: add blake2b support 2019-11-18 19:21:06 +01:00
sha224-256.c btrfs-progs: add sha256 as supported checksumming algorithm 2019-11-18 19:20:40 +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: crypto: remove unused sha256 definitions 2021-03-24 22:20:19 +01:00
xxhash.c btrfs-progs: lots of typo fixes (codespell) 2020-03-31 18:37:38 +02:00
xxhash.h btrfs-progs: lots of typo fixes (codespell) 2020-03-31 18:37:38 +02:00