Updated bench.cpp

This commit is contained in:
gabime 2018-07-08 16:46:12 +03:00
parent ca2724d82e
commit f766b6d882

View File

@ -84,9 +84,9 @@ int main(int argc, char *argv[])
for (int i = 0; i < 3; ++i) 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::async_factory>("as", "logs/basic_async.log", true); auto as = spdlog::basic_logger_mt<spdlog::async_factory>("async", "logs/basic_async.log", true);
bench_mt(howmany, as, threads); bench_mt(howmany, as, threads);
spdlog::drop("as"); spdlog::drop("async");
} }
} }
catch (std::exception &ex) catch (std::exception &ex)