diff --git a/performance_test/PerformanceTest.cpp b/performance_test/PerformanceTest.cpp index d7f951c..7c19d48 100644 --- a/performance_test/PerformanceTest.cpp +++ b/performance_test/PerformanceTest.cpp @@ -78,21 +78,24 @@ BENCHMARK(BM_RandomSeverityLevel); //#include "spdlog/sinks/null_sink.h" //#include "spdlog/async.h" // -//static void BM_SpdLogWithFmtAndSeverityLvl(benchmark::State &state) { +// static void BM_SpdLogWithFmtAndSeverityLvl(benchmark::State &state) { // Log::LoggingBase Logger; // auto null_sink = std::make_shared(); // auto tp = std::make_shared(4096, 1); -// auto logger = std::make_shared("async_logger", std::move(null_sink), std::move(tp), spdlog::async_overflow_policy::overrun_oldest); +// auto logger = std::make_shared("async_logger", +// std::move(null_sink), std::move(tp), +// spdlog::async_overflow_policy::overrun_oldest); // std::random_device Device; // std::mt19937 Generator(Device()); // std::uniform_int_distribution<> Distribution(0, 6); // logger->set_level(spdlog::level::level_enum(3)); // for (auto _ : state) { -// logger->log(spdlog::level::level_enum(Distribution(Generator)), "Hello - {} - {} - {}", 42, 3.14, "test"); +// logger->log(spdlog::level::level_enum(Distribution(Generator)), "Hello - +// {} - {} - {}", 42, 3.14, "test"); // } // state.SetItemsProcessed(state.iterations()); //} -//BENCHMARK(BM_SpdLogWithFmtAndSeverityLvl); +// BENCHMARK(BM_SpdLogWithFmtAndSeverityLvl); static void BM_GraylogWithFmtAndSeverityLvl(benchmark::State &state) { Log::LoggingBase Logger; @@ -103,7 +106,8 @@ static void BM_GraylogWithFmtAndSeverityLvl(benchmark::State &state) { std::mt19937 Generator(Device()); std::uniform_int_distribution<> Distribution(0, 6); for (auto _ : state) { - Logger.fmt_log(Log::Severity(Distribution(Generator)), "Hello - {} - {} - {}", 42, 3.14, "test"); + Logger.fmt_log(Log::Severity(Distribution(Generator)), + "Hello - {} - {} - {}", 42, 3.14, "test"); } state.SetItemsProcessed(state.iterations()); }