From 3aceda041b2bfbccaf14d5c83eda16fc67bea364 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 1 Sep 2023 17:08:14 +0300 Subject: [PATCH] Fixed bench --- bench/bench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/bench.cpp b/bench/bench.cpp index ae47f047..3b73554a 100644 --- a/bench/bench.cpp +++ b/bench/bench.cpp @@ -161,7 +161,7 @@ void bench(int howmany, std::shared_ptr log) auto delta_d = duration_cast>(delta).count(); spdlog::info(spdlog::fmt_lib::format( - std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(), delta_d, int(howmany / delta_d))); + std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(), delta_d, size_t(howmany / delta_d))); spdlog::drop(log->name()); } @@ -192,7 +192,7 @@ void bench_mt(int howmany, std::shared_ptr log, size_t thread_co auto delta = high_resolution_clock::now() - start; auto delta_d = duration_cast>(delta).count(); spdlog::info(spdlog::fmt_lib::format( - std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(), delta_d, int(howmany / delta_d))); + std::locale("en_US.UTF-8"), "{:<30} Elapsed: {:0.2f} secs {:>16L}/sec", log->name(), delta_d, size_t(howmany / delta_d))); spdlog::drop(log->name()); }