mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-10 04:33:59 +01:00
refactor: Remove unused LogPrint
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
// All but 2 of the benchmarks should have roughly similar performance:
|
||||
//
|
||||
// LogPrintWithoutCategory should be ~3 orders of magnitude faster, as nothing is logged.
|
||||
// LogWithoutDebug should be ~3 orders of magnitude faster, as nothing is logged.
|
||||
//
|
||||
// LogWithoutWriteToFile should be ~2 orders of magnitude faster, as it avoids disk writes.
|
||||
|
||||
@@ -40,12 +40,12 @@ static void LogPrintLevelWithoutThreadNames(benchmark::Bench& bench)
|
||||
LogPrintLevel(BCLog::NET, BCLog::Level::Error, "%s\n", "test"); });
|
||||
}
|
||||
|
||||
static void LogPrintWithCategory(benchmark::Bench& bench)
|
||||
static void LogWithDebug(benchmark::Bench& bench)
|
||||
{
|
||||
Logging(bench, {"-logthreadnames=0", "-debug=net"}, [] { LogDebug(BCLog::NET, "%s\n", "test"); });
|
||||
}
|
||||
|
||||
static void LogPrintWithoutCategory(benchmark::Bench& bench)
|
||||
static void LogWithoutDebug(benchmark::Bench& bench)
|
||||
{
|
||||
Logging(bench, {"-logthreadnames=0", "-debug=0"}, [] { LogDebug(BCLog::NET, "%s\n", "test"); });
|
||||
}
|
||||
@@ -85,8 +85,8 @@ static void LogWithoutWriteToFile(benchmark::Bench& bench)
|
||||
|
||||
BENCHMARK(LogPrintLevelWithThreadNames, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintLevelWithoutThreadNames, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintWithCategory, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintWithoutCategory, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogWithDebug, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogWithoutDebug, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintfCategoryWithThreadNames, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintfCategoryWithoutThreadNames, benchmark::PriorityLevel::HIGH);
|
||||
BENCHMARK(LogPrintfWithThreadNames, benchmark::PriorityLevel::HIGH);
|
||||
|
||||
Reference in New Issue
Block a user