Skip to content

Commit

Permalink
Use thread unsafe connection pool for single thread benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid authored and thed636 committed Apr 26, 2020
1 parent cb94ac4 commit 3eec2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/performance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3eec2ca

Please sign in to comment.