algorithmBenchmark

Algorithm benchmark

static if(BOTAN_HAS_BENCHMARK)
HashMapRef!(string, double)
algorithmBenchmark

Parameters

name string

the name of the algorithm to test (cipher, hash, or MAC)

af AlgorithmFactory

the algorithm factory used to create objects

rng RandomNumberGenerator

the rng to use to generate random inputs

milliseconds Duration

total time for the benchmark to run

buf_size size_t

size of buffer to benchmark against, in KiB

Return Value

Type: HashMapRef!(string, double)

results a map from provider to speed in mebibytes per second

Meta