blob: a8193d72d08888f46270de29547cb0257a3090b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/**
* Runtime benchmarking
* (C) 2008 Jack Lloyd
*/
#ifndef BOTAN_RUNTIME_BENCHMARK_H__
#define BOTAN_RUNTIME_BENCHMARK_H__
#include <botan/algo_factory.h>
#include <botan/timer.h>
#include <botan/rng.h>
#include <map>
#include <string>
namespace Botan {
/**
Algorithm benchmark
@param name the name of the algorithm to test (cipher, hash, or MAC)
@param milliseconds total time for the benchmark to run
@param timer the timer to use
@param rng the rng to use to generate random inputs
@param af the algorithm factory used to create objects
@returns results a map from provider to speed in mebibytes per second
*/
std::map<std::string, double>
algorithm_benchmark(const std::string& name,
u32bit milliseconds,
Timer& timer,
RandomNumberGenerator& rng,
Algorithm_Factory& af);
}
#endif
|