aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.h
blob: ba27a1c16b3408e5702f0b70d75caf77f3042b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifndef BOTAN_CHECK_BENCHMARK_H__
#define BOTAN_CHECK_BENCHMARK_H__

#include <botan/rng.h>
#include <string>

void benchmark(Botan::RandomNumberGenerator& rng,
               double seconds,
               size_t buf_size);

bool bench_algo(const std::string& algo_name,
                Botan::RandomNumberGenerator& rng,
                double seconds,
                size_t buf_size);

void bench_pk(Botan::RandomNumberGenerator&,
              const std::string&, double seconds);

void time_transform(const std::string& algo);

#endif