This commit is contained in:
gabime
2018-06-01 17:52:05 +03:00
parent 5997e5aae7
commit 4b9949de7b
6 changed files with 4 additions and 11 deletions

View File

@@ -72,18 +72,14 @@ int main(int argc, char *argv[])
cout << "\n*******************************************************************************\n";
cout << "async logging.. " << threads << " threads sharing same logger, " << format(howmany) << " iterations " << endl;
cout << "*******************************************************************************\n";
for (int i = 0; i < 3; ++i)
{
spdlog::init_thread_pool(queue_size, 1);
spdlog::init_thread_pool(queue_size, 1);
auto as = spdlog::basic_logger_mt<spdlog::create_async>("as", "logs/basic_async.log", true);
bench_mt(howmany, as, threads);
spdlog::drop("as");
}
}
catch (std::exception &ex)
{