From 3eec2ca7a941fb0b7f0ada83df001396fbf0fc1e Mon Sep 17 00:00:00 2001 From: Roman Siromakha Date: Fri, 15 Nov 2019 21:49:34 +0100 Subject: [PATCH] Use thread unsafe connection pool for single thread benchmark --- benchmarks/performance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/performance.cpp b/benchmarks/performance.cpp index 6b0ac98a3..6a97437d4 100644 --- a/benchmarks/performance.cpp +++ b/benchmarks/performance.cpp @@ -230,7 +230,7 @@ benchmark_report use_connection_pool(const benchmark_params& params, Query query ozo::connection_pool_config config; config.capacity = params.coroutines + 1; config.queue_capacity = params.queue_capacity; - ozo::connection_pool pool(connection_info, config); + ozo::connection_pool pool(connection_info, config, !ozo::thread_safe); for (std::size_t token = 0; token < params.coroutines; ++token) { spawn(io, token, [&, token] (asio::yield_context yield) {