|
|
@ -75,15 +75,11 @@ 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::create_async>("as", "logs/basic_async.log", true);
|
|
|
|
auto as = spdlog::basic_logger_mt<spdlog::create_async>("as", "logs/basic_async.log", true);
|
|
|
|
bench_mt(howmany, as, threads);
|
|
|
|
bench_mt(howmany, as, threads);
|
|
|
|
spdlog::drop("as");
|
|
|
|
spdlog::drop("as");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (std::exception &ex)
|
|
|
|
catch (std::exception &ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|