Skip to content

Commit c66e7b0

Browse files
committed
bench: switch no non-locking spdlog sink as it's only using a single thread
1 parent fc72cb9 commit c66e7b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bench/b-vs-spdlog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ void jalog_mt(picobench::state& s) {
122122
PICOBENCH(jalog_mt);
123123

124124
void spdlog_mt(picobench::state& s) {
125-
auto sink = std::make_shared<SpdlogHashingSink<std::mutex>>();
125+
//auto sink = std::make_shared<SpdlogHashingSink<std::mutex>>();
126+
auto sink = std::make_shared<SpdlogHashingSink<spdlog::details::null_mutex>>();
126127
spdlog::init_thread_pool(s.iterations(), 1);
127128
auto logger = std::make_shared<spdlog::async_logger>("mt", sink, spdlog::thread_pool());
128129

0 commit comments

Comments
 (0)