|
|
@ -162,7 +162,7 @@ void thread_fun(std::shared_ptr<spdlog::logger> logger, int howmany)
|
|
|
|
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> logger, int thread_count)
|
|
|
|
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> logger, int thread_count)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using std::chrono::high_resolution_clock;
|
|
|
|
using std::chrono::high_resolution_clock;
|
|
|
|
vector<thread> threads;
|
|
|
|
vector<std::thread> threads;
|
|
|
|
auto start = high_resolution_clock::now();
|
|
|
|
auto start = high_resolution_clock::now();
|
|
|
|
|
|
|
|
|
|
|
|
int msgs_per_thread = howmany / thread_count;
|
|
|
|
int msgs_per_thread = howmany / thread_count;
|
|
|
|