v.21.2Improvements

Add --reconnect option to clickhouse-benchmark for testing purposes

Add --reconnect option to clickhouse-benchmark. When this option is specified, it will reconnect before every request. This is needed for testing. #19872 (alexey-milovidov).
Added the --reconnect option to the clickhouse-benchmark tool, allowing it to reconnect before each request.

Why it matters

This feature addresses the need for benchmarking with a fresh connection for every request, enabling more accurate testing scenarios that simulate repeated connection setups.

How to use it

Run clickhouse-benchmark with the --reconnect option to force the tool to reconnect before each request, for example:
clickhouse-benchmark --reconnect