Skip to content

Instantly share code, notes, and snippets.

@zamazan4ik
Created September 21, 2023 16:41
Show Gist options
  • Save zamazan4ik/b38fff2c4db0ad7beb0fcca7d9dc741c to your computer and use it in GitHub Desktop.
Save zamazan4ik/b38fff2c4db0ad7beb0fcca7d9dc741c to your computer and use it in GitHub Desktop.
HAProxy GCC Optimized new config
taskset -c 15-23 ./nighthawk_client --rps 30000 --duration 120 --connections 50 --concurrency auto --prefetch-connections -v info http://127.0.0.1:8080
[18:38:57.311073][2492766][I] Detected 9 (v)CPUs with affinity..
[18:38:57.311112][2492766][I] Starting 9 threads / event loops. Time limit: 120 seconds.
[18:38:57.311115][2492766][I] Global targets: 450 connections and 270000 calls per second.
[18:38:57.311118][2492766][I] (Per-worker targets: 50 connections and 30000 calls per second)
[18:40:58.263196][2492776][I] Stopping after 120000 ms. Initiated: 28869 / Completed: 28868. (Completion rate was 240.56666666666666 per second.)
[18:40:58.263214][2492773][I] Stopping after 120000 ms. Initiated: 933235 / Completed: 933202. (Completion rate was 7776.681453968648 per second.)
[18:40:58.263223][2492781][I] Stopping after 120000 ms. Initiated: 938408 / Completed: 938375. (Completion rate was 7819.790689192831 per second.)
[18:40:58.263199][2492774][I] Stopping after 120000 ms. Initiated: 938596 / Completed: 938563. (Completion rate was 7821.357746731503 per second.)
[18:40:58.263214][2492778][I] Stopping after 120000 ms. Initiated: 937015 / Completed: 936982. (Completion rate was 7808.182227174184 per second.)
[18:40:58.263211][2492779][I] Stopping after 120000 ms. Initiated: 938022 / Completed: 937989. (Completion rate was 7816.57428348069 per second.)
[18:40:58.263204][2492772][I] Stopping after 120000 ms. Initiated: 938311 / Completed: 938278. (Completion rate was 7818.982030169663 per second.)
[18:40:58.263220][2492780][I] Stopping after 120000 ms. Initiated: 938335 / Completed: 938302. (Completion rate was 7819.182290775694 per second.)
[18:40:58.263223][2492782][I] Stopping after 119999 ms. Initiated: 937722 / Completed: 937689. (Completion rate was 7814.080600091096 per second.)
Nighthawk - A layer 7 protocol benchmarking tool.
benchmark_http_client.latency_3xx (7528063 samples)
min: 0s 001ms 030us | mean: 0s 004ms 208us | max: 0s 037ms 369us | pstdev: 0s 000ms 338us
Percentile Count Value
0.5 3765914 0s 004ms 243us
0.75 5646986 0s 004ms 388us
0.8 6023604 0s 004ms 420us
0.9 6775331 0s 004ms 516us
0.95 7151932 0s 004ms 635us
0.990625 7457503 0s 004ms 965us
0.99902344 7520717 0s 006ms 523us
Queueing and connection setup latency (7528328 samples)
min: 0s 000ms 001us | mean: 0s 000ms 003us | max: 0s 032ms 457us | pstdev: 0s 000ms 034us
Percentile Count Value
0.5 3783858 0s 000ms 003us
0.75 5654189 0s 000ms 004us
0.8 6025591 0s 000ms 004us
0.9 6780415 0s 000ms 004us
0.95 7153498 0s 000ms 004us
0.990625 7458213 0s 000ms 006us
0.99902344 7521005 0s 000ms 014us
Request start to response end (7528063 samples)
min: 0s 001ms 030us | mean: 0s 004ms 208us | max: 0s 037ms 369us | pstdev: 0s 000ms 338us
Percentile Count Value
0.5 3764092 0s 004ms 243us
0.75 5648124 0s 004ms 388us
0.8 6024603 0s 004ms 420us
0.9 6775782 0s 004ms 516us
0.95 7152143 0s 004ms 635us
0.990625 7457488 0s 004ms 965us
0.99902344 7520716 0s 006ms 523us
Response body size in bytes (7528063 samples)
min: 0 | mean: 0 | max: 0 | pstdev: 0
Response header size in bytes (7528063 samples)
min: 122 | mean: 122 | max: 122 | pstdev: 0
Blocking. Results are skewed when significant numbers are reported here. (6010288 samples)
min: 0s 000ms 022us | mean: 0s 000ms 179us | max: 0s 029ms 387us | pstdev: 0s 000ms 343us
Percentile Count Value
0.5 3005198 0s 000ms 066us
0.75 4507766 0s 000ms 190us
0.8 4808242 0s 000ms 253us
0.9 5409267 0s 000ms 472us
0.95 5709797 0s 000ms 626us
0.990625 5953952 0s 001ms 122us
0.99902344 6004425 0s 004ms 402us
Initiation to completion (7528248 samples)
min: 0s 000ms 004us | mean: 0s 004ms 214us | max: 0s 062ms 103us | pstdev: 0s 000ms 341us
Percentile Count Value
0.5 3765745 0s 004ms 249us
0.75 5646225 0s 004ms 394us
0.8 6022810 0s 004ms 426us
0.9 6776252 0s 004ms 523us
0.95 7152336 0s 004ms 641us
0.990625 7457675 0s 004ms 972us
0.99902344 7520897 0s 006ms 530us
Counter Value Per second
benchmark.http_3xx 7528063 62733.86
benchmark.pool_overflow 185 1.54
cluster_manager.cluster_added 9 0.07
default.total_match_count 9 0.07
membership_change 9 0.07
runtime.load_success 1 0.01
runtime.override_dir_not_exists 1 0.01
upstream_cx_destroy 185 1.54
upstream_cx_destroy_remote 185 1.54
upstream_cx_http1_total 635 5.29
upstream_cx_rx_bytes_total 1219546206 10162884.71
upstream_cx_total 635 5.29
upstream_cx_tx_bytes_total 301133120 2509442.58
upstream_rq_pending_overflow 185 1.54
upstream_rq_pending_total 17 0.14
upstream_rq_total 7528328 62736.06
[18:41:04.563209][2492772][I] Wait for the connection pool drain timed out, proceeding to hard shutdown.
[18:41:09.565854][2492773][I] Wait for the connection pool drain timed out, proceeding to hard shutdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment