blob: 1f082eb52d59aa81db5b161087c1ec47cbc3a117 (
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
|
/*
* (C) 2014 Jack Lloyd
* (C) 2015 Simon Warta (Kullo GmbH)
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_CHECK_BENCHMARK_H__
#define BOTAN_CHECK_BENCHMARK_H__
#include <botan/rng.h>
#include <string>
#include <chrono>
void benchmark_public_key(Botan::RandomNumberGenerator& rng,
const std::string& algo, double seconds);
std::map<std::string, double> benchmark_is_prime(Botan::RandomNumberGenerator &rng,
const std::chrono::milliseconds runtime);
std::map<std::string, double> benchmark_random_prime(Botan::RandomNumberGenerator &rng,
const std::chrono::milliseconds runtime);
bool benchmark_transform(Botan::RandomNumberGenerator& rng, const std::string& algo_name,
const std::chrono::milliseconds runtime);
#endif
|