aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bench.h
blob: 36edbdb2c2bd096de6b9d756071f729d4fc1f832 (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 <botan/transform.h>
#include <string>

using namespace Botan;

void benchmark(double seconds,
               size_t buf_size);

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

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

#endif