Added async to benchmarks

This commit is contained in:
gabime
2014-11-24 02:15:17 +02:00
parent c56fae39e8
commit 0926a6e2c3
5 changed files with 92 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ int main(int, char* [])
int howmany = 1000000;
namespace spd = spdlog;
///Create a file rotating logger with 5mb size max and 3 rotated files
auto logger = spd::rotating_logger_mt("file_logger", "logs/spd-sample", 10 *1024 * 1024 , 5);
auto logger = spd::rotating_logger_st("file_logger", "logs/spd-sample", 10 *1024 * 1024 , 5);
logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
for(int i = 0 ; i < howmany; ++i)