mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
It is based on tcp_client and works with our httpd server. 1) timer based, to run the test for 10 seconds $ http_client --server 192.168.66.100:10000 --conn 100 --duration 10 --smp 2 ========== http_client ============ Server: 192.168.66.100:10000 Connections: 100 Requests/connection: dynamic (timer based) Requests on cpu 0: 33400 Requests on cpu 1: 33368 Total cpus: 2 Total requests: 66768 Total time: 10.011478 Requests/sec: 6669.145442 ========== done ============ 2) nr of reqs per connection based, to run the test with 100 connections each has to run 1000 reqs $ http_client --server 192.168.66.100:10000 --conn 100 --reqs 1000 --smp 2 ========== http_client ============ Server: 192.168.66.100:10000 Connections: 100 Requests/connection: 1000 Requests on cpu 0: 50000 Requests on cpu 1: 50000 Total cpus: 2 Total requests: 100000 Total time: 15.002731 Requests/sec: 6665.453192 ========== done ============ This patch is based on Shlomi's initial version. Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com> Signed-off-by: Asias He <asias@cloudius-systems.com>