Changeset View
Changeset View
Standalone View
Standalone View
src/bench/bench.h
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_BENCH_BENCH_H | #ifndef BITCOIN_BENCH_BENCH_H | ||||
#define BITCOIN_BENCH_BENCH_H | #define BITCOIN_BENCH_BENCH_H | ||||
#include <chrono> | #include <chrono> | ||||
#include <functional> | #include <functional> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
#include <boost/preprocessor/cat.hpp> | #include <boost/preprocessor/cat.hpp> | ||||
#include <boost/preprocessor/stringize.hpp> | #include <boost/preprocessor/stringize.hpp> | ||||
struct RegTestingSetup; | |||||
//! A pointer to the current testing setup | |||||
extern const RegTestingSetup *g_testing_setup; | |||||
// Simple micro-benchmarking framework; API mostly matches a subset of the | // Simple micro-benchmarking framework; API mostly matches a subset of the | ||||
// Google Benchmark framework (see https://github.com/google/benchmark) | // Google Benchmark framework (see https://github.com/google/benchmark) | ||||
// Why not use the Google Benchmark framework? Because adding Yet Another | // Why not use the Google Benchmark framework? Because adding Yet Another | ||||
// Dependency (that uses cmake as its build system and has lots of features we | // Dependency (that uses cmake as its build system and has lots of features we | ||||
// don't need) isn't worth it. | // don't need) isn't worth it. | ||||
/* | /* | ||||
* Usage: | * Usage: | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |