From 2d64a1de1c4c70cf3a5f3be8c8e9a5ccc38e294f Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 2 Sep 2016 17:16:02 +0300 Subject: [PATCH] fixed bench compilation --- example/bench.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/example/bench.cpp b/example/bench.cpp index d45705b5..b21c4435 100644 --- a/example/bench.cpp +++ b/example/bench.cpp @@ -35,7 +35,6 @@ int main(int argc, char* argv[]) int queue_size = 1048576; int howmany = 1000000; int threads = 10; - bool auto_flush = false; int file_size = 30 * 1024 * 1024; int rotating_files = 5; @@ -51,29 +50,29 @@ int main(int argc, char* argv[]) cout << "*******************************************************************************\n"; - cout << "Single thread, " << format(howmany) << " iterations, auto flush=" << auto_flush << endl; + cout << "Single thread, " << format(howmany) << " iterations" << endl; cout << "*******************************************************************************\n"; - auto rotating_st = spdlog::rotating_logger_st("rotating_st", "logs/rotating_st", file_size, rotating_files, auto_flush); + auto rotating_st = spdlog::rotating_logger_st("rotating_st", "logs/rotating_st", file_size, rotating_files); bench(howmany, rotating_st); - auto daily_st = spdlog::daily_logger_st("daily_st", "logs/daily_st", auto_flush); + auto daily_st = spdlog::daily_logger_st("daily_st", "logs/daily_st"); bench(howmany, daily_st); bench(howmany, spdlog::create("null_st")); cout << "\n*******************************************************************************\n"; - cout << threads << " threads sharing same logger, " << format(howmany) << " iterations, auto_flush=" << auto_flush << endl; + cout << threads << " threads sharing same logger, " << format(howmany) << " iterations" << endl; cout << "*******************************************************************************\n"; - auto rotating_mt = spdlog::rotating_logger_mt("rotating_mt", "logs/rotating_mt", file_size, rotating_files, auto_flush); + auto rotating_mt = spdlog::rotating_logger_mt("rotating_mt", "logs/rotating_mt", file_size, rotating_files); bench_mt(howmany, rotating_mt, threads); - auto daily_mt = spdlog::daily_logger_mt("daily_mt", "logs/daily_mt", auto_flush); + auto daily_mt = spdlog::daily_logger_mt("daily_mt", "logs/daily_mt"); bench_mt(howmany, daily_mt, threads); bench(howmany, spdlog::create("null_mt")); cout << "\n*******************************************************************************\n"; - cout << "async logging.. " << threads << " threads sharing same logger, " << format(howmany) << " iterations, auto_flush=" << auto_flush << endl; + cout << "async logging.. " << threads << " threads sharing same logger, " << format(howmany) << " iterations " << endl; cout << "*******************************************************************************\n"; @@ -81,7 +80,7 @@ int main(int argc, char* argv[]) for(int i = 0; i < 3; ++i) { - auto as = spdlog::daily_logger_st("as", "logs/daily_async", auto_flush); + auto as = spdlog::daily_logger_st("as", "logs/daily_async"); bench_mt(howmany, as, threads); spdlog::drop("as"); }