aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/speed/speed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/speed/speed.h')
-rw-r--r--src/cmd/speed/speed.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/cmd/speed/speed.h b/src/cmd/speed/speed.h
new file mode 100644
index 000000000..b4aabca8a
--- /dev/null
+++ b/src/cmd/speed/speed.h
@@ -0,0 +1,25 @@
+
+#ifndef BOTAN_CHECK_BENCHMARK_H__
+#define BOTAN_CHECK_BENCHMARK_H__
+
+#include "../apps.h"
+#include <botan/rng.h>
+#include <botan/transform.h>
+#include <string>
+
+using namespace Botan;
+
+int speed_main(int argc, char* argv[]);
+
+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