#ifndef BOTAN_BENCHMARCH_H__ #define BOTAN_BENCHMARCH_H__ #include #include #include #include #include "timer.h" #include class Benchmark_Report { public: void report(const std::string& name, Timer timer) { std::cout << name << " " << timer << "\n"; data[name].insert(timer); } private: std::map > data; }; void benchmark(const std::string&, Botan::RandomNumberGenerator&, bool html, double seconds); void bench_pk(Botan::RandomNumberGenerator&, const std::string&, bool html, double seconds); u32bit bench_algo(const std::string&, Botan::RandomNumberGenerator&, double); #endif