Changeset View
Changeset View
Standalone View
Standalone View
src/bench/logprint.cpp
- This file was added.
#include <bench/bench.h> | |||||
#include <chainparams.h> | |||||
#include <logging.h> | |||||
static void BenchmarkLogPrint(benchmark::State &state) { | |||||
SelectParams(CBaseChainParams::REGTEST); | |||||
while (state.KeepRunning()) { | |||||
LogPrint(BCLog::NET, "%s: new block hash=%s\n", __func__, | |||||
Params().GetDefaultPort()); | |||||
} | |||||
} | |||||
BENCHMARK(BenchmarkLogPrint, 10 * 1000 * 1000); |