bench with bigger log line

This commit is contained in:
gabime 2014-11-23 01:41:38 +02:00
parent 3ccef96980
commit f5caa00db7
6 changed files with 6 additions and 6 deletions

View File

@ -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";
}
}));
}

View File

@ -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;
}

View File

@ -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";
}
}));
}

View File

@ -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;
}

View File

@ -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";
}
}));
}

View File

@ -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;
}