From f5caa00db7b089dd3446e0fb82ee6bd6701b250e Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 23 Nov 2014 01:41:38 +0200 Subject: [PATCH] bench with bigger log line --- bench/boost-bench-mt.cpp | 2 +- bench/boost-bench.cpp | 2 +- bench/glog-bench-mt.cpp | 2 +- bench/glog-bench.cpp | 2 +- bench/spdlog-bench-mt.cpp | 2 +- bench/spdlog-bench.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bench/boost-bench-mt.cpp b/bench/boost-bench-mt.cpp index 9867f30a..e185f0f1 100644 --- a/bench/boost-bench-mt.cpp +++ b/bench/boost-bench-mt.cpp @@ -64,7 +64,7 @@ int main(int argc, char* argv[]) { int counter = ++msg_counter; if (counter > howmany) break; - BOOST_LOG_SEV(lg, info) << "Boost logger message #" << counter; + BOOST_LOG_SEV(lg, info) << "boost message #" << counter << ": This is some text for your pleasure"; } })); } diff --git a/bench/boost-bench.cpp b/bench/boost-bench.cpp index 31e13913..7586d7a0 100644 --- a/bench/boost-bench.cpp +++ b/bench/boost-bench.cpp @@ -39,7 +39,7 @@ int main(int argc, char* []) using namespace logging::trivial; src::severity_logger_mt< severity_level > lg; for(int i = 0 ; i < howmany; ++i) - BOOST_LOG_SEV(lg, info) << "Boost logger message #" << i; + BOOST_LOG_SEV(lg, info) << "boost message #" << i << ": This is some text for your pleasure"; return 0; } diff --git a/bench/glog-bench-mt.cpp b/bench/glog-bench-mt.cpp index 6ced548b..01e98c88 100644 --- a/bench/glog-bench-mt.cpp +++ b/bench/glog-bench-mt.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { int counter = ++msg_counter; if (counter > howmany) break; - LOG(INFO) << "glog message # " << counter; + LOG(INFO) << "glog message #" << counter << ": This is some text for your pleasure"; } })); } diff --git a/bench/glog-bench.cpp b/bench/glog-bench.cpp index 0ec90ddb..8568e9ce 100644 --- a/bench/glog-bench.cpp +++ b/bench/glog-bench.cpp @@ -11,7 +11,7 @@ int main(int, char* argv[]) FLAGS_log_dir = "logs"; google::InitGoogleLogging(argv[0]); for(int i = 0 ; i < howmany; ++i) - LOG(INFO) << "glog message # " << i; + LOG(INFO) << "glog message # " << i << ": This is some text for your pleasure"; return 0; } diff --git a/bench/spdlog-bench-mt.cpp b/bench/spdlog-bench-mt.cpp index 49304b92..825038c9 100644 --- a/bench/spdlog-bench-mt.cpp +++ b/bench/spdlog-bench-mt.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { int counter = ++msg_counter; if (counter > howmany) break; - logger->info() << "spdlog logger message #" << counter; + logger->info() << "spdlog message #" << counter << ": This is some text for your pleasure"; } })); } diff --git a/bench/spdlog-bench.cpp b/bench/spdlog-bench.cpp index bfcc1dc6..3503f45e 100644 --- a/bench/spdlog-bench.cpp +++ b/bench/spdlog-bench.cpp @@ -11,7 +11,7 @@ int main(int, char* []) logger->set_pattern("[%Y-%b-%d %T.%e]: %v"); for(int i = 0 ; i < howmany; ++i) - logger->info() << "spdlogger message #" << i; + logger->info() << "spdlog message #" << i << ": This is some text for your pleasure"; return 0; }