aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r--checks/bench.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index b9a50f4ab..6345b7e2b 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -11,6 +11,7 @@ using Botan::byte;
using Botan::u64bit;
#include "common.h"
+#include "bench.h"
/* Discard output to reduce overhead */
struct BitBucket : public Botan::Filter
@@ -22,6 +23,8 @@ Botan::Filter* lookup(const std::string&,
const std::vector<std::string>&,
const std::string& = "All");
+namespace {
+
double bench_filter(std::string name, Botan::Filter* filter,
bool html, double seconds)
{
@@ -89,6 +92,8 @@ double bench(const std::string& name, const std::string& filtername, bool html,
return 0;
}
+}
+
void benchmark(const std::string& what, bool html, double seconds)
{
try {