|
|
@ -116,7 +116,7 @@ void bench(int howmany, std::shared_ptr<spdlog::logger> log) {
|
|
|
|
auto delta_d = duration_cast<duration<double>>(delta).count();
|
|
|
|
auto delta_d = duration_cast<duration<double>>(delta).count();
|
|
|
|
|
|
|
|
|
|
|
|
spdlog::info(spdlog::fmt_lib::format(std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(),
|
|
|
|
spdlog::info(spdlog::fmt_lib::format(std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(),
|
|
|
|
delta_d, size_t(howmany / delta_d)));
|
|
|
|
delta_d, static_cast<size_t>(howmany / delta_d)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_count) {
|
|
|
|
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_count) {
|
|
|
@ -142,7 +142,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_co
|
|
|
|
auto delta = high_resolution_clock::now() - start;
|
|
|
|
auto delta = high_resolution_clock::now() - start;
|
|
|
|
auto delta_d = duration_cast<duration<double>>(delta).count();
|
|
|
|
auto delta_d = duration_cast<duration<double>>(delta).count();
|
|
|
|
spdlog::info(spdlog::fmt_lib::format(std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(),
|
|
|
|
spdlog::info(spdlog::fmt_lib::format(std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(),
|
|
|
|
delta_d, size_t(howmany / delta_d)));
|
|
|
|
delta_d, static_cast<size_t>(howmany / delta_d)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|