bench: трек 1 — профили py-spy до/после, серия E (потолок нового пути), графики

Профиль при 240 req/s: доля psycopg 52.7 % -> 19.0 %, активных сэмплов
3889 -> 2026. Серия E: function в 2x1.0 CPU — потолок 552 (530–552)
успешных/с, упор в CPU API; в 3x1.0 / БД 0.5 — ~420–460, упор в БД.
analyze.py: линии без заливки, цвет = конфигурация, пунктир = multi,
подпись — максимум серии. REPORT: раздел трека 1 и ограничения.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alexey Bodanyuk
2026-10-19 17:33:46 +03:00
co-authored by Claude Opus 5.5
parent 479cd78f7f
commit b9f1ad58f9
42 changed files with 5619 additions and 243 deletions
@@ -0,0 +1,31 @@
config,repeat,rate,ok_rps,replicas_running,api_cpus_limit_total,api_mem_mib_each,pg_cpus_limit,requests,ok,dropped,error_ratio,p50_ms,p95_ms,p99_ms,api_cpu_pct_total,pg_cpu_pct,lb_cpu_pct,valkey_cpu_pct,k6_cpu_pct,pool_wait_ms_avg,pool_waiting_max,pg_commits_per_ok,statements_per_ok,lb_chkdown,lb_qmax,wal_bytes
n2-api1-pg2-pool10-message_write_path_function,1,450,443.2,2,2.0,384,2.0,8865,8865,136,0,34.628739,331.7235877999999,432.58044672000005,169.3,47.6,21.8,5.9,55.6,42.04,53,2.99,3.01,0,0,17005327
n2-api1-pg2-pool10-message_write_path_function,1,550,529.0,2,2.0,384,2.0,10581,10581,419,0,289.003206,671.024897,827.5025136000007,195.2,61.0,24.3,6.6,62.4,207.205,131,2.95,3.0,0,0,19466049
n2-api1-pg2-pool10-message_write_path_function,1,650,443.8,2,2.0,384,2.0,8978,8876,4023,0.01136,1113.935403,1968.28476,2612.7346202500003,195.3,65.7,25.6,11.6,65.7,718.779,181,3.2,3.17,2,400,17819844
n2-api1-pg2-pool10-message_write_path_function,1,750,455.8,2,2.0,384,2.0,9181,9115,5820,0.00719,1080.506298,2825.2585039,2974.216215360001,192.0,64.7,24.1,6.1,61.7,755.964,192,3.2,3.21,1,400,18051917
n2-api1-pg2-pool10-message_write_path_function,1,850,529.6,2,2.0,384,2.0,10592,10592,6351,0,982.2567455,1780.5699022499994,2282.76845217,198.5,55.2,25.5,5.7,67.8,633.563,188,3.06,3.09,0,400,20268216
n3-api1-pg0.5-pool10-message_write_path_function,1,450,439.5,3,3.0,384,0.5,8790,8790,210,0,173.556058,637.521366,798.116165,204.2,49.8,21.9,10.2,48.4,165.01,96,2.94,2.95,0,0,16834963
n3-api1-pg0.5-pool10-message_write_path_function,1,550,412.0,3,3.0,384,0.5,9300,8240,1700,0.11398,1170.215864,1974.8666587499997,2277.9815827899997,169.1,48.9,23.8,7.5,59.4,840.394,192,3.16,3.16,11,391,16599520
n3-api1-pg0.5-pool10-message_write_path_function,1,650,420.9,3,3.0,384,0.5,9915,8419,3086,0.15088,1266.367974,1660.6635666999998,1897.1363954399997,166.4,49.8,23.6,9.4,55.8,935.549,192,3.07,3.06,11,400,16062613
n3-api1-pg0.5-pool10-message_write_path_function,1,750,383.3,3,3.0,384,0.5,10515,7666,4485,0.27095,1269.548656,1908.19258625,2006.8167474,161.3,49.0,25.4,8.3,66.6,1021.726,193,3.2,3.24,14,400,15768170
n3-api1-pg0.5-pool10-message_write_path_function,1,850,370.4,3,3.0,384,0.5,13175,7407,3826,0.4378,1190.408763,1595.8426676,1680.2735505999997,150.2,49.3,28.2,8.5,63.0,975.697,192,3.3,3.27,15,400,15010035
n2-api1-pg2-pool10-message_write_path_function,2,450,445.1,2,2.0,384,2.0,8903,8903,98,0,20.939713,287.83532999999983,396.937334,164.3,40.8,20.5,9.9,53.1,32.966,50,2.98,3.0,0,0,17023704
n2-api1-pg2-pool10-message_write_path_function,2,550,525.1,2,2.0,384,2.0,10503,10503,497,0,304.09773,858.1164322999998,1125.44896496,190.3,60.4,25.0,6.5,61.3,224.508,177,2.94,3.0,0,2,19523619
n2-api1-pg2-pool10-message_write_path_function,2,650,552.4,2,2.0,384,2.0,11047,11047,1953,0,927.915712,1446.5244931,1595.4003346999998,201.4,68.1,25.9,10.1,64.9,629.199,181,3.08,3.06,0,200,21215902
n2-api1-pg2-pool10-message_write_path_function,2,750,530.2,2,2.0,384,2.0,10605,10605,4396,0,1023.668411,1574.2096668000002,1690.3210753999995,195.6,67.7,27.4,7.2,67.1,657.642,191,3.08,3.09,0,228,20338491
n2-api1-pg2-pool10-message_write_path_function,2,850,552.5,2,2.0,384,2.0,11050,11050,5950,0,965.940107,1508.7156095499997,1659.4098543900002,200.3,60.7,27.4,6.6,65.2,636.437,181,3.07,3.07,0,230,21002396
n3-api1-pg0.5-pool10-message_write_path_function,2,450,373.4,3,3.0,384,0.5,8028,7468,973,0.06976,1020.4746635,1811.1272992499996,2186.1001616699996,210.8,51.3,22.9,6.0,56.0,825.496,191,3.07,3.09,7,337,14971261
n3-api1-pg0.5-pool10-message_write_path_function,2,550,422.6,3,3.0,384,0.5,9432,8453,1568,0.1038,852.198264,2004.4173515999996,2230.0016709199995,176.6,49.5,25.1,6.1,58.5,761.019,192,2.96,2.96,9,337,15725337
n3-api1-pg0.5-pool10-message_write_path_function,2,650,376.6,3,3.0,384,0.5,9789,7531,3212,0.23067,1295.306206,1781.5179195,2203.2786076999996,171.9,49.3,27.2,6.8,61.3,1093.399,192,3.2,3.25,10,400,15183835
n3-api1-pg0.5-pool10-message_write_path_function,2,750,335.6,3,3.0,384,0.5,10860,6713,4141,0.38186,1359.678525,2192.974475,2381.86987288,173.2,51.5,25.1,4.9,66.0,1096.644,192,3.38,3.35,15,400,14501866
n3-api1-pg0.5-pool10-message_write_path_function,2,850,345.3,3,3.0,384,0.5,12292,6906,4700,0.43817,1319.3059505,1791.506597,1941.6247549999998,191.7,49.5,27.0,6.0,69.1,1033.892,192,3.31,3.3,14,400,14365650
n2-api1-pg2-pool10-message_write_path_function,3,450,442.5,2,2.0,384,2.0,8850,8850,151,0,26.6757725,369.7395602499999,459.48822332000026,173.9,49.8,21.7,10.2,52.7,41.406,55,2.98,3.01,0,0,16917023
n2-api1-pg2-pool10-message_write_path_function,3,550,524.0,2,2.0,384,2.0,10479,10479,522,0,361.785411,811.7921828000001,1160.5554723199998,196.2,56.7,25.6,11.4,69.8,279.254,181,2.98,3.0,0,41,19623791
n2-api1-pg2-pool10-message_write_path_function,3,650,548.0,2,2.0,384,2.0,10961,10961,2040,0,915.134185,1453.449344,1677.3023003999997,195.4,60.5,27.6,6.7,65.4,626.747,185,3.04,3.05,0,200,20919900
n2-api1-pg2-pool10-message_write_path_function,3,750,552.0,2,2.0,384,2.0,11039,11039,3961,0,960.874148,1520.5090723000003,1640.0442179200002,200.5,61.3,28.1,7.2,68.6,634.395,181,3.02,3.03,0,220,20585228
n2-api1-pg2-pool10-message_write_path_function,3,850,514.8,2,2.0,384,2.0,10406,10296,6595,0.01057,1037.4526045,1654.535533,1831.6677941999992,198.0,62.6,25.3,8.3,59.4,651.491,181,3.1,3.11,1,400,19958695
n3-api1-pg0.5-pool10-message_write_path_function,3,450,368.9,3,3.0,384,0.5,8090,7379,910,0.08789,451.310097,1840.6765702999996,2124.4643808800006,235.5,51.3,22.7,10.7,64.1,458.068,163,3.1,3.12,3,183,14926787
n3-api1-pg0.5-pool10-message_write_path_function,3,550,349.6,3,3.0,384,0.5,7806,6992,3195,0.10428,1329.049919,2624.47547915,3877.989075410001,200.8,50.5,23.9,10.4,57.9,911.706,192,2.98,2.98,13,400,13205400
n3-api1-pg0.5-pool10-message_write_path_function,3,650,394.9,3,3.0,384,0.5,9019,7899,3981,0.12418,1350.057973,1867.7866874,2249.028925279999,171.5,50.0,24.6,7.0,57.7,1010.098,192,3.09,3.06,14,400,15133331
n3-api1-pg0.5-pool10-message_write_path_function,3,750,317.2,3,3.0,384,0.5,11455,6345,3546,0.44609,1387.149728,2148.657413,2289.0639938399995,178.2,50.0,27.3,5.4,62.8,1165.938,192,3.31,3.37,14,400,13418130
n3-api1-pg0.5-pool10-message_write_path_function,3,850,344.9,3,3.0,384,0.5,12025,6897,4975,0.42644,1361.580403,1670.7012224,1839.83932316,151.6,49.9,27.1,10.2,76.5,1098.253,192,3.26,3.29,15,400,14519850
1 config repeat rate ok_rps replicas_running api_cpus_limit_total api_mem_mib_each pg_cpus_limit requests ok dropped error_ratio p50_ms p95_ms p99_ms api_cpu_pct_total pg_cpu_pct lb_cpu_pct valkey_cpu_pct k6_cpu_pct pool_wait_ms_avg pool_waiting_max pg_commits_per_ok statements_per_ok lb_chkdown lb_qmax wal_bytes
2 n2-api1-pg2-pool10-message_write_path_function 1 450 443.2 2 2.0 384 2.0 8865 8865 136 0 34.628739 331.7235877999999 432.58044672000005 169.3 47.6 21.8 5.9 55.6 42.04 53 2.99 3.01 0 0 17005327
3 n2-api1-pg2-pool10-message_write_path_function 1 550 529.0 2 2.0 384 2.0 10581 10581 419 0 289.003206 671.024897 827.5025136000007 195.2 61.0 24.3 6.6 62.4 207.205 131 2.95 3.0 0 0 19466049
4 n2-api1-pg2-pool10-message_write_path_function 1 650 443.8 2 2.0 384 2.0 8978 8876 4023 0.01136 1113.935403 1968.28476 2612.7346202500003 195.3 65.7 25.6 11.6 65.7 718.779 181 3.2 3.17 2 400 17819844
5 n2-api1-pg2-pool10-message_write_path_function 1 750 455.8 2 2.0 384 2.0 9181 9115 5820 0.00719 1080.506298 2825.2585039 2974.216215360001 192.0 64.7 24.1 6.1 61.7 755.964 192 3.2 3.21 1 400 18051917
6 n2-api1-pg2-pool10-message_write_path_function 1 850 529.6 2 2.0 384 2.0 10592 10592 6351 0 982.2567455 1780.5699022499994 2282.76845217 198.5 55.2 25.5 5.7 67.8 633.563 188 3.06 3.09 0 400 20268216
7 n3-api1-pg0.5-pool10-message_write_path_function 1 450 439.5 3 3.0 384 0.5 8790 8790 210 0 173.556058 637.521366 798.116165 204.2 49.8 21.9 10.2 48.4 165.01 96 2.94 2.95 0 0 16834963
8 n3-api1-pg0.5-pool10-message_write_path_function 1 550 412.0 3 3.0 384 0.5 9300 8240 1700 0.11398 1170.215864 1974.8666587499997 2277.9815827899997 169.1 48.9 23.8 7.5 59.4 840.394 192 3.16 3.16 11 391 16599520
9 n3-api1-pg0.5-pool10-message_write_path_function 1 650 420.9 3 3.0 384 0.5 9915 8419 3086 0.15088 1266.367974 1660.6635666999998 1897.1363954399997 166.4 49.8 23.6 9.4 55.8 935.549 192 3.07 3.06 11 400 16062613
10 n3-api1-pg0.5-pool10-message_write_path_function 1 750 383.3 3 3.0 384 0.5 10515 7666 4485 0.27095 1269.548656 1908.19258625 2006.8167474 161.3 49.0 25.4 8.3 66.6 1021.726 193 3.2 3.24 14 400 15768170
11 n3-api1-pg0.5-pool10-message_write_path_function 1 850 370.4 3 3.0 384 0.5 13175 7407 3826 0.4378 1190.408763 1595.8426676 1680.2735505999997 150.2 49.3 28.2 8.5 63.0 975.697 192 3.3 3.27 15 400 15010035
12 n2-api1-pg2-pool10-message_write_path_function 2 450 445.1 2 2.0 384 2.0 8903 8903 98 0 20.939713 287.83532999999983 396.937334 164.3 40.8 20.5 9.9 53.1 32.966 50 2.98 3.0 0 0 17023704
13 n2-api1-pg2-pool10-message_write_path_function 2 550 525.1 2 2.0 384 2.0 10503 10503 497 0 304.09773 858.1164322999998 1125.44896496 190.3 60.4 25.0 6.5 61.3 224.508 177 2.94 3.0 0 2 19523619
14 n2-api1-pg2-pool10-message_write_path_function 2 650 552.4 2 2.0 384 2.0 11047 11047 1953 0 927.915712 1446.5244931 1595.4003346999998 201.4 68.1 25.9 10.1 64.9 629.199 181 3.08 3.06 0 200 21215902
15 n2-api1-pg2-pool10-message_write_path_function 2 750 530.2 2 2.0 384 2.0 10605 10605 4396 0 1023.668411 1574.2096668000002 1690.3210753999995 195.6 67.7 27.4 7.2 67.1 657.642 191 3.08 3.09 0 228 20338491
16 n2-api1-pg2-pool10-message_write_path_function 2 850 552.5 2 2.0 384 2.0 11050 11050 5950 0 965.940107 1508.7156095499997 1659.4098543900002 200.3 60.7 27.4 6.6 65.2 636.437 181 3.07 3.07 0 230 21002396
17 n3-api1-pg0.5-pool10-message_write_path_function 2 450 373.4 3 3.0 384 0.5 8028 7468 973 0.06976 1020.4746635 1811.1272992499996 2186.1001616699996 210.8 51.3 22.9 6.0 56.0 825.496 191 3.07 3.09 7 337 14971261
18 n3-api1-pg0.5-pool10-message_write_path_function 2 550 422.6 3 3.0 384 0.5 9432 8453 1568 0.1038 852.198264 2004.4173515999996 2230.0016709199995 176.6 49.5 25.1 6.1 58.5 761.019 192 2.96 2.96 9 337 15725337
19 n3-api1-pg0.5-pool10-message_write_path_function 2 650 376.6 3 3.0 384 0.5 9789 7531 3212 0.23067 1295.306206 1781.5179195 2203.2786076999996 171.9 49.3 27.2 6.8 61.3 1093.399 192 3.2 3.25 10 400 15183835
20 n3-api1-pg0.5-pool10-message_write_path_function 2 750 335.6 3 3.0 384 0.5 10860 6713 4141 0.38186 1359.678525 2192.974475 2381.86987288 173.2 51.5 25.1 4.9 66.0 1096.644 192 3.38 3.35 15 400 14501866
21 n3-api1-pg0.5-pool10-message_write_path_function 2 850 345.3 3 3.0 384 0.5 12292 6906 4700 0.43817 1319.3059505 1791.506597 1941.6247549999998 191.7 49.5 27.0 6.0 69.1 1033.892 192 3.31 3.3 14 400 14365650
22 n2-api1-pg2-pool10-message_write_path_function 3 450 442.5 2 2.0 384 2.0 8850 8850 151 0 26.6757725 369.7395602499999 459.48822332000026 173.9 49.8 21.7 10.2 52.7 41.406 55 2.98 3.01 0 0 16917023
23 n2-api1-pg2-pool10-message_write_path_function 3 550 524.0 2 2.0 384 2.0 10479 10479 522 0 361.785411 811.7921828000001 1160.5554723199998 196.2 56.7 25.6 11.4 69.8 279.254 181 2.98 3.0 0 41 19623791
24 n2-api1-pg2-pool10-message_write_path_function 3 650 548.0 2 2.0 384 2.0 10961 10961 2040 0 915.134185 1453.449344 1677.3023003999997 195.4 60.5 27.6 6.7 65.4 626.747 185 3.04 3.05 0 200 20919900
25 n2-api1-pg2-pool10-message_write_path_function 3 750 552.0 2 2.0 384 2.0 11039 11039 3961 0 960.874148 1520.5090723000003 1640.0442179200002 200.5 61.3 28.1 7.2 68.6 634.395 181 3.02 3.03 0 220 20585228
26 n2-api1-pg2-pool10-message_write_path_function 3 850 514.8 2 2.0 384 2.0 10406 10296 6595 0.01057 1037.4526045 1654.535533 1831.6677941999992 198.0 62.6 25.3 8.3 59.4 651.491 181 3.1 3.11 1 400 19958695
27 n3-api1-pg0.5-pool10-message_write_path_function 3 450 368.9 3 3.0 384 0.5 8090 7379 910 0.08789 451.310097 1840.6765702999996 2124.4643808800006 235.5 51.3 22.7 10.7 64.1 458.068 163 3.1 3.12 3 183 14926787
28 n3-api1-pg0.5-pool10-message_write_path_function 3 550 349.6 3 3.0 384 0.5 7806 6992 3195 0.10428 1329.049919 2624.47547915 3877.989075410001 200.8 50.5 23.9 10.4 57.9 911.706 192 2.98 2.98 13 400 13205400
29 n3-api1-pg0.5-pool10-message_write_path_function 3 650 394.9 3 3.0 384 0.5 9019 7899 3981 0.12418 1350.057973 1867.7866874 2249.028925279999 171.5 50.0 24.6 7.0 57.7 1010.098 192 3.09 3.06 14 400 15133331
30 n3-api1-pg0.5-pool10-message_write_path_function 3 750 317.2 3 3.0 384 0.5 11455 6345 3546 0.44609 1387.149728 2148.657413 2289.0639938399995 178.2 50.0 27.3 5.4 62.8 1165.938 192 3.31 3.37 14 400 13418130
31 n3-api1-pg0.5-pool10-message_write_path_function 3 850 344.9 3 3.0 384 0.5 12025 6897 4975 0.42644 1361.580403 1670.7012224 1839.83932316 151.6 49.9 27.1 10.2 76.5 1098.253 192 3.26 3.29 15 400 14519850