]> git.codecow.com Git - Monocypher.git/commit
More accurate speed benchmark
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 3 Feb 2018 22:22:25 +0000 (23:22 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 3 Feb 2018 23:59:36 +0000 (00:59 +0100)
commite13215c8d16e094eaed131f80c529edef4d4ae10
tree481568fc1b57fbe963cdd81b5c70fc08032fa2c4
parentbeae72348cf25af021db11c0f810287dfbf2b352
More accurate speed benchmark

Used smaller buffers to minimise the impact of cache misses in the
benchmark.  Chosen a size that makes Libsodium and Monocypher look best.
(There is a trade-off between start up time and throughput.)

This should highlight the algorithmic differences better.  Still, the
memory access patterns are very clean, computation tends to dominate.
Ultimately, this makes little difference.
tests/speed-sodium.c
tests/speed.c
tests/speed.h