aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.h
blob: 3840bc11233efb9e48ea4f91f0e407c5ae74c7cc (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,
               u32bit buf_size);

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

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

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

#endif