Skip to content

Commit 8f86bc4

Browse files
committedJan 14, 2020
GO FORMAT YOURSELF (clang-format)
1 parent 1e62adb commit 8f86bc4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed
 

‎performance_test/PerformanceTest.cpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,24 @@ BENCHMARK(BM_RandomSeverityLevel);
7878
//#include "spdlog/sinks/null_sink.h"
7979
//#include "spdlog/async.h"
8080
//
81-
//static void BM_SpdLogWithFmtAndSeverityLvl(benchmark::State &state) {
81+
// static void BM_SpdLogWithFmtAndSeverityLvl(benchmark::State &state) {
8282
// Log::LoggingBase Logger;
8383
// auto null_sink = std::make_shared<spdlog::sinks::null_sink_mt>();
8484
// auto tp = std::make_shared<spdlog::details::thread_pool>(4096, 1);
85-
// auto logger = std::make_shared<spdlog::async_logger>("async_logger", std::move(null_sink), std::move(tp), spdlog::async_overflow_policy::overrun_oldest);
85+
// auto logger = std::make_shared<spdlog::async_logger>("async_logger",
86+
// std::move(null_sink), std::move(tp),
87+
// spdlog::async_overflow_policy::overrun_oldest);
8688
// std::random_device Device;
8789
// std::mt19937 Generator(Device());
8890
// std::uniform_int_distribution<> Distribution(0, 6);
8991
// logger->set_level(spdlog::level::level_enum(3));
9092
// for (auto _ : state) {
91-
// logger->log(spdlog::level::level_enum(Distribution(Generator)), "Hello - {} - {} - {}", 42, 3.14, "test");
93+
// logger->log(spdlog::level::level_enum(Distribution(Generator)), "Hello -
94+
// {} - {} - {}", 42, 3.14, "test");
9295
// }
9396
// state.SetItemsProcessed(state.iterations());
9497
//}
95-
//BENCHMARK(BM_SpdLogWithFmtAndSeverityLvl);
98+
// BENCHMARK(BM_SpdLogWithFmtAndSeverityLvl);
9699

97100
static void BM_GraylogWithFmtAndSeverityLvl(benchmark::State &state) {
98101
Log::LoggingBase Logger;
@@ -103,7 +106,8 @@ static void BM_GraylogWithFmtAndSeverityLvl(benchmark::State &state) {
103106
std::mt19937 Generator(Device());
104107
std::uniform_int_distribution<> Distribution(0, 6);
105108
for (auto _ : state) {
106-
Logger.fmt_log(Log::Severity(Distribution(Generator)), "Hello - {} - {} - {}", 42, 3.14, "test");
109+
Logger.fmt_log(Log::Severity(Distribution(Generator)),
110+
"Hello - {} - {} - {}", 42, 3.14, "test");
107111
}
108112
state.SetItemsProcessed(state.iterations());
109113
}

0 commit comments

Comments
 (0)
Please sign in to comment.