Benchmarks to compare digestif
and mirage-crypto
hash functions using bechamel
.
./script
launches some benchmarks for example. You can either change the parameters of the benchmarks directly in the script file or launch it manually.
bench [OPTION] ...
-
--hash=HASH
or--hash HASH
withHASH
inmd5
,sha1
,sha224
,sha256
,sha384
orsha512
. Default value issha512
. This option defines which hash functions are benchmarked. It can be used multiple times to benchmark several hashes functions. -
--measure=MEASURE
or--measure MEASURE
withMEASURE
inclock
,minor
,major
. Default value isclock
. This option defines what measurements are taken.clock
will result in measurements for themonotonic clock
(i.e. runtime).minor
andmajor
are for measurements of allocated memory in minor and major heap respectively. This option can be used only once by command line. -
--all
make that benchmarks for all available hashes are launched. This option overwrites thehash
option.