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

#ifndef BOTAN_CHECK_BENCHMARK_H__
#define BOTAN_CHECK_BENCHMARK_H__

#include "../common.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