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
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" font-family="system-ui, sans-serif" font-size="12">
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.s0{stroke:#2a78d6;fill:#2a78d6}.s1{stroke:#eb6834;fill:#eb6834}.s2{stroke:#1baf7a;fill:#1baf7a}.s3{stroke:#eda100;fill:#eda100}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.s0{stroke:#3987e5;fill:#3987e5}.s1{stroke:#d95926;fill:#d95926}.s2{stroke:#199e70;fill:#199e70}.s3{stroke:#c98500;fill:#c98500}}</style>
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.l0{stroke:#2a78d6;fill:none}.d0{fill:#2a78d6;stroke:#fcfcfb}.l1{stroke:#eb6834;fill:none}.d1{fill:#eb6834;stroke:#fcfcfb}.l2{stroke:#1baf7a;fill:none}.d2{fill:#1baf7a;stroke:#fcfcfb}.l3{stroke:#eda100;fill:none}.d3{fill:#eda100;stroke:#fcfcfb}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.l0{stroke:#3987e5}.d0{fill:#3987e5;stroke:#1a1a19}.l1{stroke:#d95926}.d1{fill:#d95926;stroke:#1a1a19}.l2{stroke:#199e70}.d2{fill:#199e70;stroke:#1a1a19}.l3{stroke:#c98500}.d3{fill:#c98500;stroke:#1a1a19}}</style>
<rect class="bg" width="760" height="420"/>
<text class="ink" x="64" y="22" font-size="14" font-weight="600">A-fixed-total/baseline</text>
<line class="grid" x1="64" x2="550" y1="368.0" y2="368.0" stroke-width="1"/>
@@ -27,56 +27,56 @@
<text class="ink2" x="307.0" y="408" text-anchor="middle">предложенная нагрузка, запросов/с (open-loop)</text>
<text class="ink2" transform="translate(16 204.0) rotate(-90)" text-anchor="middle">успешных запросов/с (201)</text>
<line class="ref" x1="64.0" y1="368.0" x2="526.9" y2="69.8" stroke-width="1"/>
<text class="ink2" x="522.9" y="63.8" text-anchor="end">обслужено = предложено</text>
<polyline class="s0" points="196.2,282.8 262.4,240.4 328.5,198.8 394.6,185.8 460.7,193.9 526.9,198.6" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s0" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="196.2" cy="282.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 16 мс</title></circle>
<line class="s0" x1="262.4" x2="262.4" y1="240.5" y2="240.4" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="262.4" cy="240.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 150/с, успешно 149.8/с (повторы 149.6–149.8), p95 66 мс</title></circle>
<line class="s0" x1="328.5" x2="328.5" y1="198.9" y2="198.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="328.5" cy="198.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 200/с, успешно 198.6/с (повторы 198.5–198.7), p95 155 мс</title></circle>
<line class="s0" x1="394.6" x2="394.6" y1="189.9" y2="180.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="394.6" cy="185.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 250/с, успешно 213.9/с (повторы 209–219.8), p95 2484 мс</title></circle>
<line class="s0" x1="460.7" x2="460.7" y1="197.4" y2="189.0" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="460.7" cy="193.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 300/с, успешно 204.3/с (повторы 200.3–210.1), p95 3124 мс</title></circle>
<line class="s0" x1="526.9" x2="526.9" y1="201.0" y2="196.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="526.9" cy="198.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 350/с, успешно 198.8/с (повторы 196–201.1), p95 3324 мс</title></circle>
<text class="ink2" x="534.9" y="202.6">199</text>
<line class="s0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink2" x="272.9" y="221.6" text-anchor="end">обслужено = предложено</text>
<polyline class="l0" points="196.2,282.8 262.4,240.4 328.5,198.8 394.6,185.8 460.7,193.9 526.9,198.6" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l0" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="196.2" cy="282.8" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 16 мс</title></circle>
<line class="l0" x1="262.4" x2="262.4" y1="240.5" y2="240.4" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="262.4" cy="240.4" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 150/с, успешно 149.8/с (повторы 149.6–149.8), p95 66 мс</title></circle>
<line class="l0" x1="328.5" x2="328.5" y1="198.9" y2="198.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="328.5" cy="198.8" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 200/с, успешно 198.6/с (повторы 198.5–198.7), p95 155 мс</title></circle>
<line class="l0" x1="394.6" x2="394.6" y1="189.9" y2="180.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="394.6" cy="185.8" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 250/с, успешно 213.9/с (повторы 209–219.8), p95 2484 мс</title></circle>
<line class="l0" x1="460.7" x2="460.7" y1="197.4" y2="189.0" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="460.7" cy="193.9" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 300/с, успешно 204.3/с (повторы 200.3–210.1), p95 3124 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="201.0" y2="196.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="198.6" r="4" stroke-width="2"><title>1 × 2 CPU API, БД 2 CPU: предложено 350/с, успешно 198.8/с (повторы 196–201.1), p95 3324 мс</title></circle>
<text class="ink2" x="394.6" y="175.8" text-anchor="middle">max 214</text>
<line class="l0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink" x="608" y="54">1 × 2 CPU API, БД 2</text>
<text class="ink" x="608" y="68">CPU</text>
<polyline class="s1" points="196.2,282.8 262.4,240.5 328.5,198.9 394.6,159.2 460.7,124.4 526.9,121.9" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s1" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="196.2" cy="282.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 28 мс</title></circle>
<line class="s1" x1="262.4" x2="262.4" y1="240.9" y2="240.1" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="262.4" cy="240.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 150/с, успешно 149.7/с (повторы 149.2–150.1), p95 84 мс</title></circle>
<line class="s1" x1="328.5" x2="328.5" y1="199.7" y2="198.9" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="328.5" cy="198.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 200/с, успешно 198.5/с (повторы 197.6–198.5), p95 199 мс</title></circle>
<line class="s1" x1="394.6" x2="394.6" y1="161.5" y2="158.3" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="394.6" cy="159.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 250/с, успешно 245.1/с (повторы 242.4–246.1), p95 448 мс</title></circle>
<line class="s1" x1="460.7" x2="460.7" y1="128.3" y2="120.4" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="460.7" cy="124.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 300/с, успешно 285.9/с (повторы 281.4–290.6), p95 1123 мс</title></circle>
<line class="s1" x1="526.9" x2="526.9" y1="137.0" y2="120.4" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="526.9" cy="121.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 350/с, успешно 288.9/с (повторы 271.1–290.6), p95 2449 мс</title></circle>
<text class="ink2" x="534.9" y="125.9">289</text>
<line class="s1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<polyline class="l1" points="196.2,282.8 262.4,240.5 328.5,198.9 394.6,159.2 460.7,124.4 526.9,121.9" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l1" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="196.2" cy="282.8" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 28 мс</title></circle>
<line class="l1" x1="262.4" x2="262.4" y1="240.9" y2="240.1" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="262.4" cy="240.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 150/с, успешно 149.7/с (повторы 149.2–150.1), p95 84 мс</title></circle>
<line class="l1" x1="328.5" x2="328.5" y1="199.7" y2="198.9" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="328.5" cy="198.9" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 200/с, успешно 198.5/с (повторы 197.6–198.5), p95 199 мс</title></circle>
<line class="l1" x1="394.6" x2="394.6" y1="161.5" y2="158.3" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="394.6" cy="159.2" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 250/с, успешно 245.1/с (повторы 242.4–246.1), p95 448 мс</title></circle>
<line class="l1" x1="460.7" x2="460.7" y1="128.3" y2="120.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="460.7" cy="124.4" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 300/с, успешно 285.9/с (повторы 281.4–290.6), p95 1123 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="137.0" y2="120.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="121.9" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU: предложено 350/с, успешно 288.9/с (повторы 271.1–290.6), p95 2449 мс</title></circle>
<text class="ink2" x="526.9" y="111.9" text-anchor="middle">max 289</text>
<line class="l1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<text class="ink" x="608" y="94">2 × 1 CPU API, БД 2</text>
<text class="ink" x="608" y="108">CPU</text>
<polyline class="s2" points="196.2,282.8 262.4,240.5 328.5,200.4 394.6,164.6 460.7,174.4 526.9,188.1" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s2" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="196.2" cy="282.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 79 мс</title></circle>
<line class="s2" x1="262.4" x2="262.4" y1="242.6" y2="240.5" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="262.4" cy="240.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 150/с, успешно 149.6/с (повторы 147.2–149.6), p95 229 мс</title></circle>
<line class="s2" x1="328.5" x2="328.5" y1="203.1" y2="200.3" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="328.5" cy="200.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 200/с, успешно 196.7/с (повторы 193.6–196.8), p95 506 мс</title></circle>
<line class="s2" x1="394.6" x2="394.6" y1="166.3" y2="162.4" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="394.6" cy="164.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 250/с, успешно 238.7/с (повторы 236.8–241.3), p95 1132 мс</title></circle>
<line class="s2" x1="460.7" x2="460.7" y1="176.5" y2="170.0" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="460.7" cy="174.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 300/с, успешно 227.2/с (повторы 224.8–232.4), p95 3385 мс</title></circle>
<line class="s2" x1="526.9" x2="526.9" y1="193.2" y2="184.5" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="526.9" cy="188.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 350/с, успешно 211.2/с (повторы 205.2–215.4), p95 4212 мс</title></circle>
<text class="ink2" x="534.9" y="192.1">211</text>
<line class="s2" x1="584" x2="602" y1="130" y2="130" stroke-width="2"/>
<polyline class="l2" points="196.2,282.8 262.4,240.5 328.5,200.4 394.6,164.6 460.7,174.4 526.9,188.1" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l2" x1="196.2" x2="196.2" y1="282.8" y2="282.8" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="196.2" cy="282.8" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 79 мс</title></circle>
<line class="l2" x1="262.4" x2="262.4" y1="242.6" y2="240.5" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="262.4" cy="240.5" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 150/с, успешно 149.6/с (повторы 147.2–149.6), p95 229 мс</title></circle>
<line class="l2" x1="328.5" x2="328.5" y1="203.1" y2="200.3" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="328.5" cy="200.4" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 200/с, успешно 196.7/с (повторы 193.6–196.8), p95 506 мс</title></circle>
<line class="l2" x1="394.6" x2="394.6" y1="166.3" y2="162.4" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="394.6" cy="164.6" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 250/с, успешно 238.7/с (повторы 236.8–241.3), p95 1132 мс</title></circle>
<line class="l2" x1="460.7" x2="460.7" y1="176.5" y2="170.0" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="460.7" cy="174.4" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 300/с, успешно 227.2/с (повторы 224.8–232.4), p95 3385 мс</title></circle>
<line class="l2" x1="526.9" x2="526.9" y1="193.2" y2="184.5" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="526.9" cy="188.1" r="4" stroke-width="2"><title>4 × 0.5 CPU API, БД 2 CPU: предложено 350/с, успешно 211.2/с (повторы 205.2–215.4), p95 4212 мс</title></circle>
<text class="ink2" x="394.6" y="154.6" text-anchor="middle">max 239</text>
<line class="l2" x1="584" x2="602" y1="130" y2="130" stroke-width="2"/>
<text class="ink" x="608" y="134">4 × 0.5 CPU API, БД 2</text>
<text class="ink" x="608" y="148">CPU</text>
</svg>

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" font-family="system-ui, sans-serif" font-size="12">
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.s0{stroke:#2a78d6;fill:#2a78d6}.s1{stroke:#eb6834;fill:#eb6834}.s2{stroke:#1baf7a;fill:#1baf7a}.s3{stroke:#eda100;fill:#eda100}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.s0{stroke:#3987e5;fill:#3987e5}.s1{stroke:#d95926;fill:#d95926}.s2{stroke:#199e70;fill:#199e70}.s3{stroke:#c98500;fill:#c98500}}</style>
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.l0{stroke:#2a78d6;fill:none}.d0{fill:#2a78d6;stroke:#fcfcfb}.l1{stroke:#eb6834;fill:none}.d1{fill:#eb6834;stroke:#fcfcfb}.l2{stroke:#1baf7a;fill:none}.d2{fill:#1baf7a;stroke:#fcfcfb}.l3{stroke:#eda100;fill:none}.d3{fill:#eda100;stroke:#fcfcfb}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.l0{stroke:#3987e5}.d0{fill:#3987e5;stroke:#1a1a19}.l1{stroke:#d95926}.d1{fill:#d95926;stroke:#1a1a19}.l2{stroke:#199e70}.d2{fill:#199e70;stroke:#1a1a19}.l3{stroke:#c98500}.d3{fill:#c98500;stroke:#1a1a19}}</style>
<rect class="bg" width="760" height="420"/>
<text class="ink" x="64" y="22" font-size="14" font-weight="600">B-replicas-vs-db/baseline</text>
<line class="grid" x1="64" x2="550" y1="368.0" y2="368.0" stroke-width="1"/>
@@ -22,62 +22,62 @@
<text class="ink2" x="307.0" y="408" text-anchor="middle">предложенная нагрузка, запросов/с (open-loop)</text>
<text class="ink2" transform="translate(16 204.0) rotate(-90)" text-anchor="middle">успешных запросов/с (201)</text>
<line class="ref" x1="64.0" y1="368.0" x2="526.9" y2="69.8" stroke-width="1"/>
<text class="ink2" x="522.9" y="63.8" text-anchor="end">обслужено = предложено</text>
<polyline class="s0" points="179.7,293.5 237.6,258.0 295.4,235.4 353.3,245.9 411.1,245.1 469.0,246.2 526.9,250.8" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s0" x1="179.7" x2="179.7" y1="293.6" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="179.7" cy="293.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 99.8–100), p95 97 мс</title></circle>
<line class="s0" x1="237.6" x2="237.6" y1="259.0" y2="257.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="237.6" cy="258.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 147.5/с (повторы 146.2–147.9), p95 427 мс</title></circle>
<line class="s0" x1="295.4" x2="295.4" y1="235.9" y2="233.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="295.4" cy="235.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 177.9/с (повторы 177.2–180.2), p95 2281 мс</title></circle>
<line class="s0" x1="353.3" x2="353.3" y1="247.4" y2="244.6" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="353.3" cy="245.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 163.8/с (повторы 161.8–165.6), p95 3265 мс</title></circle>
<line class="s0" x1="411.1" x2="411.1" y1="250.3" y2="242.8" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="411.1" cy="245.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 164.9/с (повторы 157.9–167.9), p95 3982 мс</title></circle>
<line class="s0" x1="469.0" x2="469.0" y1="246.7" y2="243.3" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="469.0" cy="246.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 163.4/с (повторы 162.7–167.3), p95 4204 мс</title></circle>
<line class="s0" x1="526.9" x2="526.9" y1="272.7" y2="248.1" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="526.9" cy="250.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 157.2/с (повторы 127.8–160.8), p95 4606 мс</title></circle>
<text class="ink2" x="534.9" y="254.8">157</text>
<line class="s0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink2" x="260.5" y="229.5" text-anchor="end">обслужено = предложено</text>
<polyline class="l0" points="179.7,293.5 237.6,258.0 295.4,235.4 353.3,245.9 411.1,245.1 469.0,246.2 526.9,250.8" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l0" x1="179.7" x2="179.7" y1="293.6" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="179.7" cy="293.5" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 99.8–100), p95 97 мс</title></circle>
<line class="l0" x1="237.6" x2="237.6" y1="259.0" y2="257.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="237.6" cy="258.0" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 147.5/с (повторы 146.2–147.9), p95 427 мс</title></circle>
<line class="l0" x1="295.4" x2="295.4" y1="235.9" y2="233.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="295.4" cy="235.4" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 177.9/с (повторы 177.2–180.2), p95 2281 мс</title></circle>
<line class="l0" x1="353.3" x2="353.3" y1="247.4" y2="244.6" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="353.3" cy="245.9" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 163.8/с (повторы 161.8–165.6), p95 3265 мс</title></circle>
<line class="l0" x1="411.1" x2="411.1" y1="250.3" y2="242.8" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="411.1" cy="245.1" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 164.9/с (повторы 157.9–167.9), p95 3982 мс</title></circle>
<line class="l0" x1="469.0" x2="469.0" y1="246.7" y2="243.3" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="469.0" cy="246.2" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 163.4/с (повторы 162.7–167.3), p95 4204 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="272.7" y2="248.1" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="250.8" r="4" stroke-width="2"><title>1 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 157.2/с (повторы 127.8–160.8), p95 4606 мс</title></circle>
<text class="ink2" x="295.4" y="225.4" text-anchor="middle">max 178</text>
<line class="l0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink" x="608" y="54">1 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="68">CPU</text>
<polyline class="s1" points="179.7,293.5 237.6,256.6 295.4,220.9 353.3,212.7 411.1,219.1 469.0,220.6 526.9,224.6" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s1" x1="179.7" x2="179.7" y1="293.5" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="179.7" cy="293.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 43 мс</title></circle>
<line class="s1" x1="237.6" x2="237.6" y1="256.6" y2="256.6" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="237.6" cy="256.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 149.4/с (повторы 149.4–149.5), p95 158 мс</title></circle>
<line class="s1" x1="295.4" x2="295.4" y1="221.4" y2="220.7" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="295.4" cy="220.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 197.3/с (повторы 196.6–197.6), p95 367 мс</title></circle>
<line class="s1" x1="353.3" x2="353.3" y1="219.0" y2="211.7" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="353.3" cy="212.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 208.3/с (повторы 199.9–209.7), p95 2419 мс</title></circle>
<line class="s1" x1="411.1" x2="411.1" y1="221.5" y2="218.0" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="411.1" cy="219.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 199.8/с (повторы 196.5–201.2), p95 3278 мс</title></circle>
<line class="s1" x1="469.0" x2="469.0" y1="220.9" y2="202.4" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="469.0" cy="220.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 197.7/с (повторы 197.3–222.2), p95 3411 мс</title></circle>
<line class="s1" x1="526.9" x2="526.9" y1="227.3" y2="214.6" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="526.9" cy="224.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 192.3/с (повторы 188.8–205.8), p95 4159 мс</title></circle>
<text class="ink2" x="534.9" y="228.6">192</text>
<line class="s1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<polyline class="l1" points="179.7,293.5 237.6,256.6 295.4,220.9 353.3,212.7 411.1,219.1 469.0,220.6 526.9,224.6" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l1" x1="179.7" x2="179.7" y1="293.5" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="179.7" cy="293.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 43 мс</title></circle>
<line class="l1" x1="237.6" x2="237.6" y1="256.6" y2="256.6" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="237.6" cy="256.6" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 149.4/с (повторы 149.4–149.5), p95 158 мс</title></circle>
<line class="l1" x1="295.4" x2="295.4" y1="221.4" y2="220.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="295.4" cy="220.9" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 197.3/с (повторы 196.6–197.6), p95 367 мс</title></circle>
<line class="l1" x1="353.3" x2="353.3" y1="219.0" y2="211.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="353.3" cy="212.7" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 208.3/с (повторы 199.9–209.7), p95 2419 мс</title></circle>
<line class="l1" x1="411.1" x2="411.1" y1="221.5" y2="218.0" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="411.1" cy="219.1" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 199.8/с (повторы 196.5–201.2), p95 3278 мс</title></circle>
<line class="l1" x1="469.0" x2="469.0" y1="220.9" y2="202.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="469.0" cy="220.6" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 197.7/с (повторы 197.3–222.2), p95 3411 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="227.3" y2="214.6" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="224.6" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 192.3/с (повторы 188.8–205.8), p95 4159 мс</title></circle>
<text class="ink2" x="353.3" y="202.7" text-anchor="middle">max 208</text>
<line class="l1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<text class="ink" x="608" y="94">2 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="108">CPU</text>
<polyline class="s2" points="179.7,293.5 237.6,257.0 295.4,221.3 353.3,225.7 411.1,224.4 469.0,224.4 526.9,238.9" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s2" x1="179.7" x2="179.7" y1="293.5" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="179.7" cy="293.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 53 мс</title></circle>
<line class="s2" x1="237.6" x2="237.6" y1="257.1" y2="256.9" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="237.6" cy="257.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 148.9/с (повторы 148.8–149.1), p95 191 мс</title></circle>
<line class="s2" x1="295.4" x2="295.4" y1="221.4" y2="221.2" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="295.4" cy="221.3" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 196.8/с (повторы 196.7–196.9), p95 377 мс</title></circle>
<line class="s2" x1="353.3" x2="353.3" y1="227.6" y2="219.1" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="353.3" cy="225.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 190.9/с (повторы 188.3–199.7), p95 3168 мс</title></circle>
<line class="s2" x1="411.1" x2="411.1" y1="229.6" y2="220.8" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="411.1" cy="224.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 192.6/с (повторы 185.6–197.4), p95 3127 мс</title></circle>
<line class="s2" x1="469.0" x2="469.0" y1="236.7" y2="215.0" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="469.0" cy="224.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 192.6/с (повторы 176.2–205.2), p95 3464 мс</title></circle>
<line class="s2" x1="526.9" x2="526.9" y1="242.6" y2="225.8" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="526.9" cy="238.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 173.2/с (повторы 168.2–190.7), p95 3809 мс</title></circle>
<text class="ink2" x="534.9" y="242.9">173</text>
<line class="s2" x1="584" x2="602" y1="130" y2="130" stroke-width="2"/>
<polyline class="l2" points="179.7,293.5 237.6,257.0 295.4,221.3 353.3,225.7 411.1,224.4 469.0,224.4 526.9,238.9" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l2" x1="179.7" x2="179.7" y1="293.5" y2="293.5" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="179.7" cy="293.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 100/с, успешно 100/с (повторы 100–100), p95 53 мс</title></circle>
<line class="l2" x1="237.6" x2="237.6" y1="257.1" y2="256.9" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="237.6" cy="257.0" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 150/с, успешно 148.9/с (повторы 148.8–149.1), p95 191 мс</title></circle>
<line class="l2" x1="295.4" x2="295.4" y1="221.4" y2="221.2" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="295.4" cy="221.3" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 200/с, успешно 196.8/с (повторы 196.7–196.9), p95 377 мс</title></circle>
<line class="l2" x1="353.3" x2="353.3" y1="227.6" y2="219.1" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="353.3" cy="225.7" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 250/с, успешно 190.9/с (повторы 188.3–199.7), p95 3168 мс</title></circle>
<line class="l2" x1="411.1" x2="411.1" y1="229.6" y2="220.8" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="411.1" cy="224.4" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 300/с, успешно 192.6/с (повторы 185.6–197.4), p95 3127 мс</title></circle>
<line class="l2" x1="469.0" x2="469.0" y1="236.7" y2="215.0" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="469.0" cy="224.4" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 350/с, успешно 192.6/с (повторы 176.2–205.2), p95 3464 мс</title></circle>
<line class="l2" x1="526.9" x2="526.9" y1="242.6" y2="225.8" stroke-width="2" opacity="0.5"/>
<circle class="d2" cx="526.9" cy="238.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU: предложено 400/с, успешно 173.2/с (повторы 168.2–190.7), p95 3809 мс</title></circle>
<text class="ink2" x="295.4" y="211.3" text-anchor="middle">max 197</text>
<line class="l2" x1="584" x2="602" y1="130" y2="130" stroke-width="2"/>
<text class="ink" x="608" y="134">3 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="148">CPU</text>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" font-family="system-ui, sans-serif" font-size="12">
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.s0{stroke:#2a78d6;fill:#2a78d6}.s1{stroke:#eb6834;fill:#eb6834}.s2{stroke:#1baf7a;fill:#1baf7a}.s3{stroke:#eda100;fill:#eda100}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.s0{stroke:#3987e5;fill:#3987e5}.s1{stroke:#d95926;fill:#d95926}.s2{stroke:#199e70;fill:#199e70}.s3{stroke:#c98500;fill:#c98500}}</style>
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.l0{stroke:#2a78d6;fill:none}.d0{fill:#2a78d6;stroke:#fcfcfb}.l1{stroke:#eb6834;fill:none}.d1{fill:#eb6834;stroke:#fcfcfb}.l2{stroke:#1baf7a;fill:none}.d2{fill:#1baf7a;stroke:#fcfcfb}.l3{stroke:#eda100;fill:none}.d3{fill:#eda100;stroke:#fcfcfb}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.l0{stroke:#3987e5}.d0{fill:#3987e5;stroke:#1a1a19}.l1{stroke:#d95926}.d1{fill:#d95926;stroke:#1a1a19}.l2{stroke:#199e70}.d2{fill:#199e70;stroke:#1a1a19}.l3{stroke:#c98500}.d3{fill:#c98500;stroke:#1a1a19}}</style>
<rect class="bg" width="760" height="420"/>
<text class="ink" x="64" y="22" font-size="14" font-weight="600">C-db-growth/baseline</text>
<line class="grid" x1="64" x2="550" y1="368.0" y2="368.0" stroke-width="1"/>
@@ -24,43 +24,43 @@
<text class="ink2" x="307.0" y="408" text-anchor="middle">предложенная нагрузка, запросов/с (open-loop)</text>
<text class="ink2" transform="translate(16 204.0) rotate(-90)" text-anchor="middle">успешных запросов/с (201)</text>
<line class="ref" x1="64.0" y1="368.0" x2="526.9" y2="69.8" stroke-width="1"/>
<text class="ink2" x="522.9" y="63.8" text-anchor="end">обслужено = предложено</text>
<polyline class="s0" points="249.1,250.3 295.4,220.2 341.7,192.3 388.0,175.9 434.3,168.7 480.6,175.9 526.9,174.8" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s0" x1="249.1" x2="249.1" y1="252.2" y2="249.1" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="249.1" cy="250.3" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 200/с, успешно 197.4/с (повторы 194.1–199.3), p95 183 мс</title></circle>
<line class="s0" x1="295.4" x2="295.4" y1="224.4" y2="220.2" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="295.4" cy="220.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 250/с, успешно 247.8/с (повторы 240.8–247.8), p95 254 мс</title></circle>
<line class="s0" x1="341.7" x2="341.7" y1="202.9" y2="192.0" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="341.7" cy="192.3" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 300/с, успешно 294.6/с (повторы 276.9–295.2), p95 497 мс</title></circle>
<line class="s0" x1="388.0" x2="388.0" y1="184.4" y2="171.4" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="388.0" cy="175.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 350/с, успешно 322.1/с (повторы 307.8–329.7), p95 1604 мс</title></circle>
<line class="s0" x1="434.3" x2="434.3" y1="179.6" y2="166.8" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="434.3" cy="168.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 400/с, успешно 334.2/с (повторы 315.9–337.4), p95 2038 мс</title></circle>
<line class="s0" x1="480.6" x2="480.6" y1="183.1" y2="171.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="480.6" cy="175.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 450/с, успешно 322.2/с (повторы 310–329.1), p95 2207 мс</title></circle>
<line class="s0" x1="526.9" x2="526.9" y1="185.8" y2="169.6" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="526.9" cy="174.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 500/с, успешно 323.9/с (повторы 305.6–332.6), p95 2294 мс</title></circle>
<text class="ink2" x="534.9" y="178.8">324</text>
<line class="s0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink2" x="312.6" y="196.0" text-anchor="end">обслужено = предложено</text>
<polyline class="l0" points="249.1,250.3 295.4,220.2 341.7,192.3 388.0,175.9 434.3,168.7 480.6,175.9 526.9,174.8" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l0" x1="249.1" x2="249.1" y1="252.2" y2="249.1" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="249.1" cy="250.3" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 200/с, успешно 197.4/с (повторы 194.1–199.3), p95 183 мс</title></circle>
<line class="l0" x1="295.4" x2="295.4" y1="224.4" y2="220.2" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="295.4" cy="220.2" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 250/с, успешно 247.8/с (повторы 240.8–247.8), p95 254 мс</title></circle>
<line class="l0" x1="341.7" x2="341.7" y1="202.9" y2="192.0" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="341.7" cy="192.3" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 300/с, успешно 294.6/с (повторы 276.9–295.2), p95 497 мс</title></circle>
<line class="l0" x1="388.0" x2="388.0" y1="184.4" y2="171.4" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="388.0" cy="175.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 350/с, успешно 322.1/с (повторы 307.8–329.7), p95 1604 мс</title></circle>
<line class="l0" x1="434.3" x2="434.3" y1="179.6" y2="166.8" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="434.3" cy="168.7" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 400/с, успешно 334.2/с (повторы 315.9–337.4), p95 2038 мс</title></circle>
<line class="l0" x1="480.6" x2="480.6" y1="183.1" y2="171.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="480.6" cy="175.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 450/с, успешно 322.2/с (повторы 310–329.1), p95 2207 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="185.8" y2="169.6" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="174.8" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 1 CPU: предложено 500/с, успешно 323.9/с (повторы 305.6–332.6), p95 2294 мс</title></circle>
<text class="ink2" x="434.3" y="158.7" text-anchor="middle">max 334</text>
<line class="l0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink" x="608" y="54">3 × 1 CPU API, БД 1</text>
<text class="ink" x="608" y="68">CPU</text>
<polyline class="s1" points="249.1,249.1 295.4,220.8 341.7,192.2 388.0,167.5 434.3,162.1 480.6,167.1 526.9,163.7" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s1" x1="249.1" x2="249.1" y1="250.0" y2="248.8" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="249.1" cy="249.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 200/с, успешно 199.3/с (повторы 197.8–199.9), p95 88 мс</title></circle>
<line class="s1" x1="295.4" x2="295.4" y1="220.8" y2="219.6" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="295.4" cy="220.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 250/с, успешно 246.9/с (повторы 246.8–248.8), p95 207 мс</title></circle>
<line class="s1" x1="341.7" x2="341.7" y1="192.6" y2="191.9" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="341.7" cy="192.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 300/с, успешно 294.8/с (повторы 294.1–295.3), p95 405 мс</title></circle>
<line class="s1" x1="388.0" x2="388.0" y1="170.2" y2="166.3" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="388.0" cy="167.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 350/с, успешно 336.2/с (повторы 331.7–338.3), p95 974 мс</title></circle>
<line class="s1" x1="434.3" x2="434.3" y1="167.4" y2="161.3" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="434.3" cy="162.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 400/с, успешно 345.3/с (повторы 336.4–346.6), p95 2021 мс</title></circle>
<line class="s1" x1="480.6" x2="480.6" y1="169.4" y2="164.7" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="480.6" cy="167.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 450/с, успешно 336.9/с (повторы 333.1–340.9), p95 2110 мс</title></circle>
<line class="s1" x1="526.9" x2="526.9" y1="171.1" y2="161.2" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="526.9" cy="163.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 500/с, успешно 342.6/с (повторы 330.1–346.7), p95 2069 мс</title></circle>
<text class="ink2" x="534.9" y="167.7">343</text>
<line class="s1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<polyline class="l1" points="249.1,249.1 295.4,220.8 341.7,192.2 388.0,167.5 434.3,162.1 480.6,167.1 526.9,163.7" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l1" x1="249.1" x2="249.1" y1="250.0" y2="248.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="249.1" cy="249.1" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 200/с, успешно 199.3/с (повторы 197.8–199.9), p95 88 мс</title></circle>
<line class="l1" x1="295.4" x2="295.4" y1="220.8" y2="219.6" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="295.4" cy="220.8" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 250/с, успешно 246.9/с (повторы 246.8–248.8), p95 207 мс</title></circle>
<line class="l1" x1="341.7" x2="341.7" y1="192.6" y2="191.9" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="341.7" cy="192.2" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 300/с, успешно 294.8/с (повторы 294.1–295.3), p95 405 мс</title></circle>
<line class="l1" x1="388.0" x2="388.0" y1="170.2" y2="166.3" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="388.0" cy="167.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 350/с, успешно 336.2/с (повторы 331.7–338.3), p95 974 мс</title></circle>
<line class="l1" x1="434.3" x2="434.3" y1="167.4" y2="161.3" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="434.3" cy="162.1" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 400/с, успешно 345.3/с (повторы 336.4–346.6), p95 2021 мс</title></circle>
<line class="l1" x1="480.6" x2="480.6" y1="169.4" y2="164.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="480.6" cy="167.1" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 450/с, успешно 336.9/с (повторы 333.1–340.9), p95 2110 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="171.1" y2="161.2" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="163.7" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 2 CPU: предложено 500/с, успешно 342.6/с (повторы 330.1–346.7), p95 2069 мс</title></circle>
<text class="ink2" x="434.3" y="152.1" text-anchor="middle">max 345</text>
<line class="l1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<text class="ink" x="608" y="94">3 × 1 CPU API, БД 2</text>
<text class="ink" x="608" y="108">CPU</text>
</svg>

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" font-family="system-ui, sans-serif" font-size="12">
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.s0{stroke:#2a78d6;fill:#2a78d6}.s1{stroke:#eb6834;fill:#eb6834}.s2{stroke:#1baf7a;fill:#1baf7a}.s3{stroke:#eda100;fill:#eda100}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.s0{stroke:#3987e5;fill:#3987e5}.s1{stroke:#d95926;fill:#d95926}.s2{stroke:#199e70;fill:#199e70}.s3{stroke:#c98500;fill:#c98500}}</style>
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.l0{stroke:#2a78d6;fill:none}.d0{fill:#2a78d6;stroke:#fcfcfb}.l1{stroke:#eb6834;fill:none}.d1{fill:#eb6834;stroke:#fcfcfb}.l2{stroke:#1baf7a;fill:none}.d2{fill:#1baf7a;stroke:#fcfcfb}.l3{stroke:#eda100;fill:none}.d3{fill:#eda100;stroke:#fcfcfb}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.l0{stroke:#3987e5}.d0{fill:#3987e5;stroke:#1a1a19}.l1{stroke:#d95926}.d1{fill:#d95926;stroke:#1a1a19}.l2{stroke:#199e70}.d2{fill:#199e70;stroke:#1a1a19}.l3{stroke:#c98500}.d3{fill:#c98500;stroke:#1a1a19}}</style>
<rect class="bg" width="760" height="420"/>
<text class="ink" x="64" y="22" font-size="14" font-weight="600">D-improvement/4830be4</text>
<line class="grid" x1="64" x2="550" y1="368.0" y2="368.0" stroke-width="1"/>
@@ -25,89 +25,89 @@
<text class="ink2" x="307.0" y="408" text-anchor="middle">предложенная нагрузка, запросов/с (open-loop)</text>
<text class="ink2" transform="translate(16 204.0) rotate(-90)" text-anchor="middle">успешных запросов/с (201)</text>
<line class="ref" x1="64.0" y1="368.0" x2="526.9" y2="69.8" stroke-width="1"/>
<text class="ink2" x="522.9" y="63.8" text-anchor="end">обслужено = предложено</text>
<polyline class="s0" points="202.9,278.5 249.1,250.3 295.4,222.0 341.7,201.6 388.0,199.5 434.3,202.1 480.6,203.8 526.9,201.7" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s0" x1="202.9" x2="202.9" y1="278.6" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="202.9" cy="278.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 150/с, успешно 150/с (повторы 149.9–150), p95 70 мс</title></circle>
<line class="s0" x1="249.1" x2="249.1" y1="250.3" y2="249.7" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="249.1" cy="250.3" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 200/с, успешно 197.4/с (повторы 197.4–198.4), p95 219 мс</title></circle>
<line class="s0" x1="295.4" x2="295.4" y1="224.2" y2="221.8" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="295.4" cy="222.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 250/с, успешно 244.8/с (повторы 241.2–245.2), p95 526 мс</title></circle>
<line class="s0" x1="341.7" x2="341.7" y1="202.5" y2="197.6" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="341.7" cy="201.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 300/с, успешно 279/с (повторы 277.5–285.7), p95 1501 мс</title></circle>
<line class="s0" x1="388.0" x2="388.0" y1="200.5" y2="199.5" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="388.0" cy="199.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 350/с, успешно 282.6/с (повторы 280.8–282.6), p95 2519 мс</title></circle>
<line class="s0" x1="434.3" x2="434.3" y1="203.9" y2="200.1" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="434.3" cy="202.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 400/с, успешно 278.2/с (повторы 275.2–281.5), p95 2545 мс</title></circle>
<line class="s0" x1="480.6" x2="480.6" y1="207.8" y2="203.2" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="480.6" cy="203.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 450/с, успешно 275.4/с (повторы 268.7–276.3), p95 2633 мс</title></circle>
<line class="s0" x1="526.9" x2="526.9" y1="204.1" y2="200.5" stroke-width="2" opacity="0.5"/>
<circle class="s0" cx="526.9" cy="201.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 500/с, успешно 278.9/с (повторы 274.9–280.9), p95 2551 мс</title></circle>
<text class="ink2" x="534.9" y="205.7">279</text>
<line class="s0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink2" x="277.9" y="218.4" text-anchor="end">обслужено = предложено</text>
<polyline class="l0" points="202.9,278.5 249.1,250.3 295.4,222.0 341.7,201.6 388.0,199.5 434.3,202.1 480.6,203.8 526.9,201.7" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="6 4"/>
<line class="l0" x1="202.9" x2="202.9" y1="278.6" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="202.9" cy="278.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 150/с, успешно 150/с (повторы 149.9–150), p95 70 мс</title></circle>
<line class="l0" x1="249.1" x2="249.1" y1="250.3" y2="249.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="249.1" cy="250.3" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 200/с, успешно 197.4/с (повторы 197.4–198.4), p95 219 мс</title></circle>
<line class="l0" x1="295.4" x2="295.4" y1="224.2" y2="221.8" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="295.4" cy="222.0" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 250/с, успешно 244.8/с (повторы 241.2–245.2), p95 526 мс</title></circle>
<line class="l0" x1="341.7" x2="341.7" y1="202.5" y2="197.6" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="341.7" cy="201.6" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 300/с, успешно 279/с (повторы 277.5–285.7), p95 1501 мс</title></circle>
<line class="l0" x1="388.0" x2="388.0" y1="200.5" y2="199.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="388.0" cy="199.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 350/с, успешно 282.6/с (повторы 280.8–282.6), p95 2519 мс</title></circle>
<line class="l0" x1="434.3" x2="434.3" y1="203.9" y2="200.1" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="434.3" cy="202.1" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 400/с, успешно 278.2/с (повторы 275.2–281.5), p95 2545 мс</title></circle>
<line class="l0" x1="480.6" x2="480.6" y1="207.8" y2="203.2" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="480.6" cy="203.8" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 450/с, успешно 275.4/с (повторы 268.7–276.3), p95 2633 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="204.1" y2="200.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="201.7" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись multi: предложено 500/с, успешно 278.9/с (повторы 274.9–280.9), p95 2551 мс</title></circle>
<text class="ink2" x="388.0" y="189.5" text-anchor="middle">max 283</text>
<line class="l0" x1="584" x2="602" y1="50" y2="50" stroke-width="2" stroke-dasharray="6 4"/>
<text class="ink" x="608" y="54">2 × 1 CPU API, БД 2</text>
<text class="ink" x="608" y="68">CPU, запись multi</text>
<polyline class="s1" points="202.9,278.5 249.1,248.7 295.4,219.2 341.7,189.4 388.0,161.6 434.3,130.7 480.6,103.0 526.9,76.4" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s1" x1="202.9" x2="202.9" y1="278.5" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="202.9" cy="278.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 150/с, успешно 150.1/с (повторы 150–150.1), p95 13 мс</title></circle>
<line class="s1" x1="249.1" x2="249.1" y1="248.8" y2="248.7" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="249.1" cy="248.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 200/с, успешно 200.1/с (повторы 199.8–200.1), p95 23 мс</title></circle>
<line class="s1" x1="295.4" x2="295.4" y1="219.3" y2="218.9" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="295.4" cy="219.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 250/с, успешно 249.5/с (повторы 249.3–250), p95 48 мс</title></circle>
<line class="s1" x1="341.7" x2="341.7" y1="189.5" y2="189.2" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="341.7" cy="189.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 300/с, успешно 299.4/с (повторы 299.3–299.8), p95 63 мс</title></circle>
<line class="s1" x1="388.0" x2="388.0" y1="162.9" y2="159.8" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="388.0" cy="161.6" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 350/с, успешно 346.1/с (повторы 343.9–349.1), p95 172 мс</title></circle>
<line class="s1" x1="434.3" x2="434.3" y1="131.8" y2="130.4" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="434.3" cy="130.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 400/с, успешно 397.9/с (повторы 396.1–398.4), p95 168 мс</title></circle>
<line class="s1" x1="480.6" x2="480.6" y1="103.9" y2="102.5" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="480.6" cy="103.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 450/с, успешно 444.4/с (повторы 442.9–445.2), p95 323 мс</title></circle>
<line class="s1" x1="526.9" x2="526.9" y1="76.9" y2="75.1" stroke-width="2" opacity="0.5"/>
<circle class="s1" cx="526.9" cy="76.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 500/с, успешно 488.9/с (повторы 488.1–491.1), p95 563 мс</title></circle>
<text class="ink2" x="534.9" y="80.4">489</text>
<line class="s1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<polyline class="l0" points="202.9,278.5 249.1,248.7 295.4,219.2 341.7,189.4 388.0,161.6 434.3,130.7 480.6,103.0 526.9,76.4" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l0" x1="202.9" x2="202.9" y1="278.5" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="202.9" cy="278.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 150/с, успешно 150.1/с (повторы 150–150.1), p95 13 мс</title></circle>
<line class="l0" x1="249.1" x2="249.1" y1="248.8" y2="248.7" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="249.1" cy="248.7" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 200/с, успешно 200.1/с (повторы 199.8–200.1), p95 23 мс</title></circle>
<line class="l0" x1="295.4" x2="295.4" y1="219.3" y2="218.9" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="295.4" cy="219.2" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 250/с, успешно 249.5/с (повторы 249.3–250), p95 48 мс</title></circle>
<line class="l0" x1="341.7" x2="341.7" y1="189.5" y2="189.2" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="341.7" cy="189.4" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 300/с, успешно 299.4/с (повторы 299.3–299.8), p95 63 мс</title></circle>
<line class="l0" x1="388.0" x2="388.0" y1="162.9" y2="159.8" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="388.0" cy="161.6" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 350/с, успешно 346.1/с (повторы 343.9–349.1), p95 172 мс</title></circle>
<line class="l0" x1="434.3" x2="434.3" y1="131.8" y2="130.4" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="434.3" cy="130.7" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 400/с, успешно 397.9/с (повторы 396.1–398.4), p95 168 мс</title></circle>
<line class="l0" x1="480.6" x2="480.6" y1="103.9" y2="102.5" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="480.6" cy="103.0" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 450/с, успешно 444.4/с (повторы 442.9–445.2), p95 323 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="76.9" y2="75.1" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="76.4" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 500/с, успешно 488.9/с (повторы 488.1–491.1), p95 563 мс</title></circle>
<text class="ink2" x="526.9" y="66.4" text-anchor="middle">max 489</text>
<line class="l0" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<text class="ink" x="608" y="94">2 × 1 CPU API, БД 2</text>
<text class="ink" x="608" y="108">CPU, запись function</text>
<polyline class="s2" points="202.9,279.0 249.1,252.5 295.4,248.8 341.7,259.5 388.0,253.4 434.3,248.8 480.6,258.7 526.9,271.9" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s2" x1="202.9" x2="202.9" y1="279.1" y2="278.8" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="202.9" cy="279.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 150/с, успешно 149.2/с (повторы 149–149.6), p95 169 мс</title></circle>
<line class="s2" x1="249.1" x2="249.1" y1="254.6" y2="252.4" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="249.1" cy="252.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 200/с, успешно 193.7/с (повторы 190.2–193.8), p95 706 мс</title></circle>
<line class="s2" x1="295.4" x2="295.4" y1="253.0" y2="247.7" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="295.4" cy="248.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 250/с, успешно 199.8/с (повторы 192.8–201.7), p95 2945 мс</title></circle>
<line class="s2" x1="341.7" x2="341.7" y1="268.0" y2="258.7" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="341.7" cy="259.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 300/с, успешно 181.9/с (повторы 167.6–183.3), p95 3267 мс</title></circle>
<line class="s2" x1="388.0" x2="388.0" y1="257.5" y2="248.9" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="388.0" cy="253.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 350/с, успешно 192.1/с (повторы 185.3–199.7), p95 3402 мс</title></circle>
<line class="s2" x1="434.3" x2="434.3" y1="260.2" y2="246.8" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="434.3" cy="248.8" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 400/с, успешно 199.8/с (повторы 180.7–203.3), p95 3290 мс</title></circle>
<line class="s2" x1="480.6" x2="480.6" y1="260.8" y2="258.6" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="480.6" cy="258.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 450/с, успешно 183.2/с (повторы 179.8–183.4), p95 4598 мс</title></circle>
<line class="s2" x1="526.9" x2="526.9" y1="272.9" y2="255.2" stroke-width="2" opacity="0.5"/>
<circle class="s2" cx="526.9" cy="271.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 500/с, успешно 161.2/с (повторы 159.5–189.2), p95 3790 мс</title></circle>
<text class="ink2" x="534.9" y="275.9">161</text>
<line class="s2" x1="584" x2="602" y1="130" y2="130" stroke-width="2"/>
<polyline class="l1" points="202.9,279.0 249.1,252.5 295.4,248.8 341.7,259.5 388.0,253.4 434.3,248.8 480.6,258.7 526.9,271.9" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke-dasharray="6 4"/>
<line class="l1" x1="202.9" x2="202.9" y1="279.1" y2="278.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="202.9" cy="279.0" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 150/с, успешно 149.2/с (повторы 149–149.6), p95 169 мс</title></circle>
<line class="l1" x1="249.1" x2="249.1" y1="254.6" y2="252.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="249.1" cy="252.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 200/с, успешно 193.7/с (повторы 190.2–193.8), p95 706 мс</title></circle>
<line class="l1" x1="295.4" x2="295.4" y1="253.0" y2="247.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="295.4" cy="248.8" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 250/с, успешно 199.8/с (повторы 192.8–201.7), p95 2945 мс</title></circle>
<line class="l1" x1="341.7" x2="341.7" y1="268.0" y2="258.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="341.7" cy="259.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 300/с, успешно 181.9/с (повторы 167.6–183.3), p95 3267 мс</title></circle>
<line class="l1" x1="388.0" x2="388.0" y1="257.5" y2="248.9" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="388.0" cy="253.4" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 350/с, успешно 192.1/с (повторы 185.3–199.7), p95 3402 мс</title></circle>
<line class="l1" x1="434.3" x2="434.3" y1="260.2" y2="246.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="434.3" cy="248.8" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 400/с, успешно 199.8/с (повторы 180.7–203.3), p95 3290 мс</title></circle>
<line class="l1" x1="480.6" x2="480.6" y1="260.8" y2="258.6" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="480.6" cy="258.7" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 450/с, успешно 183.2/с (повторы 179.8–183.4), p95 4598 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="272.9" y2="255.2" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="271.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись multi: предложено 500/с, успешно 161.2/с (повторы 159.5–189.2), p95 3790 мс</title></circle>
<text class="ink2" x="295.4" y="238.8" text-anchor="middle">max 200</text>
<line class="l1" x1="584" x2="602" y1="130" y2="130" stroke-width="2" stroke-dasharray="6 4"/>
<text class="ink" x="608" y="134">3 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="148">CPU, запись multi</text>
<polyline class="s3" points="202.9,278.5 249.1,248.7 295.4,219.1 341.7,190.0 388.0,160.4 434.3,134.0 480.6,102.9 526.9,98.2" fill="none" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="s3" x1="202.9" x2="202.9" y1="278.5" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="202.9" cy="278.5" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 150/с, успешно 150.1/с (повторы 150.1–150.1), p95 24 мс</title></circle>
<line class="s3" x1="249.1" x2="249.1" y1="249.0" y2="248.7" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="249.1" cy="248.7" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 200/с, успешно 200/с (повторы 199.6–200.1), p95 34 мс</title></circle>
<line class="s3" x1="295.4" x2="295.4" y1="219.3" y2="218.9" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="295.4" cy="219.1" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 250/с, успешно 249.7/с (повторы 249.3–250), p95 56 мс</title></circle>
<line class="s3" x1="341.7" x2="341.7" y1="190.0" y2="189.8" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="341.7" cy="190.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 300/с, успешно 298.4/с (повторы 298.4–298.8), p95 99 мс</title></circle>
<line class="s3" x1="388.0" x2="388.0" y1="166.7" y2="160.4" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="388.0" cy="160.4" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 350/с, успешно 348.1/с (повторы 337.6–348.1), p95 116 мс</title></circle>
<line class="s3" x1="434.3" x2="434.3" y1="134.8" y2="133.4" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="434.3" cy="134.0" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 400/с, успешно 392.4/с (повторы 391–393.4), p95 345 мс</title></circle>
<line class="s3" x1="480.6" x2="480.6" y1="103.0" y2="102.4" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="480.6" cy="102.9" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 450/с, успешно 444.6/с (повторы 444.4–445.4), p95 277 мс</title></circle>
<line class="s3" x1="526.9" x2="526.9" y1="108.9" y2="92.5" stroke-width="2" opacity="0.5"/>
<circle class="s3" cx="526.9" cy="98.2" r="4" stroke="#fcfcfb" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 500/с, успешно 452.4/с (повторы 434.4–461.9), p95 1455 мс</title></circle>
<text class="ink2" x="534.9" y="102.2">452</text>
<line class="s3" x1="584" x2="602" y1="170" y2="170" stroke-width="2"/>
<polyline class="l1" points="202.9,278.5 249.1,248.7 295.4,219.1 341.7,190.0 388.0,160.4 434.3,134.0 480.6,102.9 526.9,98.2" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l1" x1="202.9" x2="202.9" y1="278.5" y2="278.5" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="202.9" cy="278.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 150/с, успешно 150.1/с (повторы 150.1–150.1), p95 24 мс</title></circle>
<line class="l1" x1="249.1" x2="249.1" y1="249.0" y2="248.7" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="249.1" cy="248.7" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 200/с, успешно 200/с (повторы 199.6–200.1), p95 34 мс</title></circle>
<line class="l1" x1="295.4" x2="295.4" y1="219.3" y2="218.9" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="295.4" cy="219.1" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 250/с, успешно 249.7/с (повторы 249.3–250), p95 56 мс</title></circle>
<line class="l1" x1="341.7" x2="341.7" y1="190.0" y2="189.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="341.7" cy="190.0" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 300/с, успешно 298.4/с (повторы 298.4–298.8), p95 99 мс</title></circle>
<line class="l1" x1="388.0" x2="388.0" y1="166.7" y2="160.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="388.0" cy="160.4" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 350/с, успешно 348.1/с (повторы 337.6–348.1), p95 116 мс</title></circle>
<line class="l1" x1="434.3" x2="434.3" y1="134.8" y2="133.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="434.3" cy="134.0" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 400/с, успешно 392.4/с (повторы 391–393.4), p95 345 мс</title></circle>
<line class="l1" x1="480.6" x2="480.6" y1="103.0" y2="102.4" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="480.6" cy="102.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 450/с, успешно 444.6/с (повторы 444.4–445.4), p95 277 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="108.9" y2="92.5" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="98.2" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 500/с, успешно 452.4/с (повторы 434.4–461.9), p95 1455 мс</title></circle>
<text class="ink2" x="526.9" y="88.2" text-anchor="middle">max 452</text>
<line class="l1" x1="584" x2="602" y1="170" y2="170" stroke-width="2"/>
<text class="ink" x="608" y="174">3 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="188">CPU, запись function</text>
</svg>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

@@ -0,0 +1,58 @@
{
"started": "2026-10-19T14:11:30+00:00",
"measured_commit": "4830be4",
"image": "mtusi-messenger:bench-4830be4",
"bench_tooling_dirty": true,
"host": {
"os": "Windows 10",
"docker": "29.8.0 8 CPU 15686365184 B 6.18.54.1-microsoft-standard-WSL2"
},
"cpusets": "k6 0-1, lb+valkey 2, postgres 3-4, api 5-7 (bench/track1/compose.bench.yaml)",
"workload": "k6 constant-arrival-rate POST message, new Idempotency-Key, 64 chats, warmup 10s + measure 20s per step, fresh stand per config x repeat",
"rates": [
450,
550,
650,
750,
850
],
"repeats": 3,
"configs": [
{
"replicas": 2,
"api_cpus": 1.0,
"api_memory": "384m",
"pg_cpus": 2.0,
"pool": 10,
"env": {
"MESSAGE_WRITE_PATH": "function"
}
},
{
"replicas": 3,
"api_cpus": 1.0,
"api_memory": "384m",
"pg_cpus": 0.5,
"pool": 10,
"env": {
"MESSAGE_WRITE_PATH": "function"
}
}
],
"args": [
"--git-ref",
"4830be4",
"--repeats",
"3",
"--series",
"E-improved-ceiling",
"--label",
"4830be4",
"--rates",
"450,550,650,750,850",
"--config",
"replicas=2,MESSAGE_WRITE_PATH=function",
"--config",
"replicas=3,pg_cpus=0.5,MESSAGE_WRITE_PATH=function"
]
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8865,
"ok": 8865,
"dropped": 136,
"ok_rps": 443.2,
"error_ratio": 0,
"ok_p50_ms": 34.628739,
"ok_p95_ms": 331.7235877999999,
"ok_p99_ms": 432.58044672000005,
"vus_max": 274,
"cpu": {
"api_total": {
"cpu_median": 169.3,
"cpu_max": 195.8,
"samples": 10
},
"api-1": {
"cpu_median": 84.3,
"cpu_max": 99.1,
"mem_last": "58.23MiB",
"samples": 10
},
"api-2": {
"cpu_median": 85.0,
"cpu_max": 96.7,
"mem_last": "57.84MiB",
"samples": 10
},
"k6": {
"cpu_median": 55.6,
"cpu_max": 66.2,
"mem_last": "108.7MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 21.8,
"cpu_max": 40.3,
"mem_last": "13.89MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 47.6,
"cpu_max": 60.4,
"mem_last": "106.7MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 5.9,
"cpu_max": 6.8,
"mem_last": "4.109MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8924,
"pool_wait_ms_avg": 42.04,
"pool_waiting_max": 53,
"pool_usage_ms_avg": 13.081,
"api_cpu_s": 26.67,
"intervals": 20
},
"pg": {
"xact_commit": 26518,
"xact_rollback": 0,
"tup_inserted": 26353,
"blks_read": 61,
"blks_hit": 552050,
"wal_records": 186086,
"wal_bytes": 17005327
},
"lb": {
"chkdown_delta": 0,
"qmax": 0,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 13283,
"total_ms": 8211.2,
"mean_ms": 0.6182,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 13283,
"total_ms": 147.2,
"mean_ms": 0.0111,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 85,
"total_ms": 0.6,
"mean_ms": 0.0067,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.212,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0483,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0274,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.99,
"statements_per_ok": 3.01,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 10581,
"ok": 10581,
"dropped": 419,
"ok_rps": 529.0,
"error_ratio": 0,
"ok_p50_ms": 289.003206,
"ok_p95_ms": 671.024897,
"ok_p99_ms": 827.5025136000007,
"vus_max": 588,
"cpu": {
"api_total": {
"cpu_median": 195.2,
"cpu_max": 203.3,
"samples": 10
},
"api-1": {
"cpu_median": 97.5,
"cpu_max": 101.8,
"mem_last": "73.97MiB",
"samples": 10
},
"api-2": {
"cpu_median": 97.8,
"cpu_max": 103.0,
"mem_last": "74.21MiB",
"samples": 10
},
"k6": {
"cpu_median": 62.4,
"cpu_max": 79.1,
"mem_last": "199.5MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 24.3,
"cpu_max": 43.4,
"mem_last": "16.61MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 61.0,
"cpu_max": 71.0,
"mem_last": "118MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.6,
"cpu_max": 9.5,
"mem_last": "4.469MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10668,
"pool_wait_ms_avg": 207.205,
"pool_waiting_max": 131,
"pool_usage_ms_avg": 15.642,
"api_cpu_s": 32.12,
"intervals": 20
},
"pg": {
"xact_commit": 31234,
"xact_rollback": 0,
"tup_inserted": 31050,
"blks_read": 0,
"blks_hit": 700365,
"wal_records": 220237,
"wal_bytes": 19466049
},
"lb": {
"chkdown_delta": 0,
"qmax": 0,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 15808,
"total_ms": 9964.4,
"mean_ms": 0.6303,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 15808,
"total_ms": 182.8,
"mean_ms": 0.0116,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 77,
"total_ms": 0.5,
"mean_ms": 0.006,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1064,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0446,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0323,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.95,
"statements_per_ok": 3.0,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 8978,
"ok": 8876,
"dropped": 4023,
"ok_rps": 443.8,
"error_ratio": 0.01136,
"ok_p50_ms": 1113.935403,
"ok_p95_ms": 1968.28476,
"ok_p99_ms": 2612.7346202500003,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 195.3,
"cpu_max": 198.6,
"samples": 9
},
"api-1": {
"cpu_median": 96.8,
"cpu_max": 101.2,
"mem_last": "73.64MiB",
"samples": 9
},
"api-2": {
"cpu_median": 98.0,
"cpu_max": 106.7,
"mem_last": "63.61MiB",
"samples": 9
},
"k6": {
"cpu_median": 65.7,
"cpu_max": 124.4,
"mem_last": "433.9MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 25.6,
"cpu_max": 40.7,
"mem_last": "22.32MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 65.7,
"cpu_max": 77.0,
"mem_last": "127.2MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 11.6,
"cpu_max": 14.3,
"mem_last": "5.277MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 9026,
"pool_wait_ms_avg": 718.779,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 20.271,
"api_cpu_s": 30.84,
"intervals": 20
},
"pg": {
"xact_commit": 28410,
"xact_rollback": 0,
"tup_inserted": 28250,
"blks_read": 0,
"blks_hit": 996207,
"wal_records": 199475,
"wal_bytes": 17819844
},
"lb": {
"chkdown_delta": 2,
"qmax": 400,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 14021,
"total_ms": 12548.2,
"mean_ms": 0.895,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 14021,
"total_ms": 208.9,
"mean_ms": 0.0149,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 68,
"total_ms": 0.4,
"mean_ms": 0.0055,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1348,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0356,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0299,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.2,
"statements_per_ok": 3.17,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 9181,
"ok": 9115,
"dropped": 5820,
"ok_rps": 455.8,
"error_ratio": 0.00719,
"ok_p50_ms": 1080.506298,
"ok_p95_ms": 2825.2585039,
"ok_p99_ms": 2974.216215360001,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 192.0,
"cpu_max": 207.9,
"samples": 10
},
"api-1": {
"cpu_median": 94.6,
"cpu_max": 103.8,
"mem_last": "73.93MiB",
"samples": 10
},
"api-2": {
"cpu_median": 97.1,
"cpu_max": 104.2,
"mem_last": "64.36MiB",
"samples": 10
},
"k6": {
"cpu_median": 61.7,
"cpu_max": 135.5,
"mem_last": "436.2MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 24.1,
"cpu_max": 38.7,
"mem_last": "22.98MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 64.7,
"cpu_max": 76.3,
"mem_last": "136.4MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.1,
"cpu_max": 7.5,
"mem_last": "4.738MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 9193,
"pool_wait_ms_avg": 755.964,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 22.988,
"api_cpu_s": 28.59,
"intervals": 20
},
"pg": {
"xact_commit": 29178,
"xact_rollback": 0,
"tup_inserted": 29016,
"blks_read": 0,
"blks_hit": 852091,
"wal_records": 206042,
"wal_bytes": 18051917
},
"lb": {
"chkdown_delta": 1,
"qmax": 400,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 10,
"redispatch_delta": 0
},
"statements": [
{
"calls": 14597,
"total_ms": 12877.3,
"mean_ms": 0.8822,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 14597,
"total_ms": 181.3,
"mean_ms": 0.0124,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 66,
"total_ms": 0.4,
"mean_ms": 0.0056,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0568,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.0956,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0274,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.2,
"statements_per_ok": 3.21,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 10592,
"ok": 10592,
"dropped": 6351,
"ok_rps": 529.6,
"error_ratio": 0,
"ok_p50_ms": 982.2567455,
"ok_p95_ms": 1780.5699022499994,
"ok_p99_ms": 2282.76845217,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 198.5,
"cpu_max": 323.4,
"samples": 10
},
"api-1": {
"cpu_median": 99.2,
"cpu_max": 159.9,
"mem_last": "64.48MiB",
"samples": 10
},
"api-2": {
"cpu_median": 98.8,
"cpu_max": 163.6,
"mem_last": "77.02MiB",
"samples": 10
},
"k6": {
"cpu_median": 67.8,
"cpu_max": 120.0,
"mem_last": "416.2MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 25.5,
"cpu_max": 47.2,
"mem_last": "23.08MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 55.2,
"cpu_max": 67.6,
"mem_last": "147MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 5.7,
"cpu_max": 20.1,
"mem_last": "4.383MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10491,
"pool_wait_ms_avg": 633.563,
"pool_waiting_max": 188,
"pool_usage_ms_avg": 17.422,
"api_cpu_s": 31.07,
"intervals": 19
},
"pg": {
"xact_commit": 32453,
"xact_rollback": 0,
"tup_inserted": 32304,
"blks_read": 0,
"blks_hit": 720692,
"wal_records": 228919,
"wal_bytes": 20268216
},
"lb": {
"chkdown_delta": 0,
"qmax": 400,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16319,
"total_ms": 11422.1,
"mean_ms": 0.6999,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16319,
"total_ms": 187.6,
"mean_ms": 0.0115,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 65,
"total_ms": 0.3,
"mean_ms": 0.0049,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0637,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1234,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0258,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.06,
"statements_per_ok": 3.09,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8903,
"ok": 8903,
"dropped": 98,
"ok_rps": 445.1,
"error_ratio": 0,
"ok_p50_ms": 20.939713,
"ok_p95_ms": 287.83532999999983,
"ok_p99_ms": 396.937334,
"vus_max": 254,
"cpu": {
"api_total": {
"cpu_median": 164.3,
"cpu_max": 193.2,
"samples": 9
},
"api-1": {
"cpu_median": 78.8,
"cpu_max": 97.5,
"mem_last": "57.7MiB",
"samples": 9
},
"api-2": {
"cpu_median": 83.9,
"cpu_max": 96.5,
"mem_last": "58.18MiB",
"samples": 9
},
"k6": {
"cpu_median": 53.1,
"cpu_max": 59.6,
"mem_last": "100.3MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 20.5,
"cpu_max": 31.1,
"mem_last": "13.75MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 40.8,
"cpu_max": 63.8,
"mem_last": "106.7MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 9.9,
"cpu_max": 12.4,
"mem_last": "4.18MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 8967,
"pool_wait_ms_avg": 32.966,
"pool_waiting_max": 50,
"pool_usage_ms_avg": 12.304,
"api_cpu_s": 25.64,
"intervals": 20
},
"pg": {
"xact_commit": 26503,
"xact_rollback": 0,
"tup_inserted": 26322,
"blks_read": 82,
"blks_hit": 527127,
"wal_records": 186226,
"wal_bytes": 17023704
},
"lb": {
"chkdown_delta": 0,
"qmax": 0,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 13313,
"total_ms": 7550.5,
"mean_ms": 0.5672,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 13313,
"total_ms": 128.4,
"mean_ms": 0.0096,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 86,
"total_ms": 0.7,
"mean_ms": 0.0084,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.3,
"mean_ms": 0.2523,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0685,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0258,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.98,
"statements_per_ok": 3.0,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 10503,
"ok": 10503,
"dropped": 497,
"ok_rps": 525.1,
"error_ratio": 0,
"ok_p50_ms": 304.09773,
"ok_p95_ms": 858.1164322999998,
"ok_p99_ms": 1125.44896496,
"vus_max": 644,
"cpu": {
"api_total": {
"cpu_median": 190.3,
"cpu_max": 198.3,
"samples": 10
},
"api-1": {
"cpu_median": 96.8,
"cpu_max": 103.4,
"mem_last": "74.59MiB",
"samples": 10
},
"api-2": {
"cpu_median": 93.9,
"cpu_max": 97.9,
"mem_last": "61.98MiB",
"samples": 10
},
"k6": {
"cpu_median": 61.3,
"cpu_max": 84.0,
"mem_last": "200.4MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 25.0,
"cpu_max": 34.4,
"mem_last": "17.08MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 60.4,
"cpu_max": 87.4,
"mem_last": "123.1MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.5,
"cpu_max": 7.1,
"mem_last": "4.582MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10604,
"pool_wait_ms_avg": 224.508,
"pool_waiting_max": 177,
"pool_usage_ms_avg": 14.575,
"api_cpu_s": 31.04,
"intervals": 20
},
"pg": {
"xact_commit": 30904,
"xact_rollback": 0,
"tup_inserted": 30720,
"blks_read": 0,
"blks_hit": 650742,
"wal_records": 219570,
"wal_bytes": 19523619
},
"lb": {
"chkdown_delta": 0,
"qmax": 2,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 9,
"redispatch_delta": 0
},
"statements": [
{
"calls": 15732,
"total_ms": 11027.1,
"mean_ms": 0.7009,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 15732,
"total_ms": 170.5,
"mean_ms": 0.0108,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 78,
"total_ms": 0.6,
"mean_ms": 0.0083,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1191,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0545,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0259,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.94,
"statements_per_ok": 3.0,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 11047,
"ok": 11047,
"dropped": 1953,
"ok_rps": 552.4,
"error_ratio": 0,
"ok_p50_ms": 927.915712,
"ok_p95_ms": 1446.5244931,
"ok_p99_ms": 1595.4003346999998,
"vus_max": 1127,
"cpu": {
"api_total": {
"cpu_median": 201.4,
"cpu_max": 209.1,
"samples": 9
},
"api-1": {
"cpu_median": 103.1,
"cpu_max": 106.4,
"mem_last": "76.29MiB",
"samples": 9
},
"api-2": {
"cpu_median": 97.3,
"cpu_max": 107.4,
"mem_last": "62.98MiB",
"samples": 9
},
"k6": {
"cpu_median": 64.9,
"cpu_max": 104.4,
"mem_last": "414.5MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 25.9,
"cpu_max": 41.7,
"mem_last": "20.97MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 68.1,
"cpu_max": 74.1,
"mem_last": "128.9MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 10.1,
"cpu_max": 12.5,
"mem_last": "4.559MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 10506,
"pool_wait_ms_avg": 629.199,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 17.31,
"api_cpu_s": 31.18,
"intervals": 19
},
"pg": {
"xact_commit": 34040,
"xact_rollback": 0,
"tup_inserted": 33884,
"blks_read": 0,
"blks_hit": 1124501,
"wal_records": 240058,
"wal_bytes": 21215902
},
"lb": {
"chkdown_delta": 0,
"qmax": 200,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 5,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16841,
"total_ms": 13541.2,
"mean_ms": 0.8041,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16841,
"total_ms": 210.6,
"mean_ms": 0.0125,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 66,
"total_ms": 0.3,
"mean_ms": 0.0048,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.1563,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0416,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0261,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.08,
"statements_per_ok": 3.06,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 10605,
"ok": 10605,
"dropped": 4396,
"ok_rps": 530.2,
"error_ratio": 0,
"ok_p50_ms": 1023.668411,
"ok_p95_ms": 1574.2096668000002,
"ok_p99_ms": 1690.3210753999995,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 195.6,
"cpu_max": 205.4,
"samples": 10
},
"api-1": {
"cpu_median": 98.0,
"cpu_max": 105.7,
"mem_last": "76.55MiB",
"samples": 10
},
"api-2": {
"cpu_median": 96.6,
"cpu_max": 99.7,
"mem_last": "63.8MiB",
"samples": 10
},
"k6": {
"cpu_median": 67.1,
"cpu_max": 113.2,
"mem_last": "435.3MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 27.4,
"cpu_max": 36.9,
"mem_last": "21.59MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 67.7,
"cpu_max": 116.4,
"mem_last": "139.4MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 7.2,
"cpu_max": 10.2,
"mem_last": "4.215MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10708,
"pool_wait_ms_avg": 657.642,
"pool_waiting_max": 191,
"pool_usage_ms_avg": 18.227,
"api_cpu_s": 32.28,
"intervals": 20
},
"pg": {
"xact_commit": 32681,
"xact_rollback": 0,
"tup_inserted": 32522,
"blks_read": 0,
"blks_hit": 934411,
"wal_records": 230681,
"wal_bytes": 20338491
},
"lb": {
"chkdown_delta": 0,
"qmax": 228,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16355,
"total_ms": 12402.7,
"mean_ms": 0.7583,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16355,
"total_ms": 205.7,
"mean_ms": 0.0126,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 65,
"total_ms": 0.5,
"mean_ms": 0.0078,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.2,
"mean_ms": 0.1031,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.104,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0313,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.08,
"statements_per_ok": 3.09,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 11050,
"ok": 11050,
"dropped": 5950,
"ok_rps": 552.5,
"error_ratio": 0,
"ok_p50_ms": 965.940107,
"ok_p95_ms": 1508.7156095499997,
"ok_p99_ms": 1659.4098543900002,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 200.3,
"cpu_max": 202.8,
"samples": 10
},
"api-1": {
"cpu_median": 99.5,
"cpu_max": 104.4,
"mem_last": "64.02MiB",
"samples": 10
},
"api-2": {
"cpu_median": 98.2,
"cpu_max": 104.2,
"mem_last": "77.07MiB",
"samples": 10
},
"k6": {
"cpu_median": 65.2,
"cpu_max": 102.2,
"mem_last": "435.7MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 27.4,
"cpu_max": 41.5,
"mem_last": "21.71MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 60.7,
"cpu_max": 75.3,
"mem_last": "149.7MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.6,
"cpu_max": 10.0,
"mem_last": "4.191MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 11124,
"pool_wait_ms_avg": 636.437,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 17.137,
"api_cpu_s": 32.78,
"intervals": 20
},
"pg": {
"xact_commit": 33907,
"xact_rollback": 0,
"tup_inserted": 33758,
"blks_read": 0,
"blks_hit": 774869,
"wal_records": 238636,
"wal_bytes": 21002396
},
"lb": {
"chkdown_delta": 0,
"qmax": 230,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16931,
"total_ms": 11350.8,
"mean_ms": 0.6704,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16931,
"total_ms": 199.1,
"mean_ms": 0.0118,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 66,
"total_ms": 0.5,
"mean_ms": 0.0073,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.0982,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0459,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0255,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.07,
"statements_per_ok": 3.07,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8850,
"ok": 8850,
"dropped": 151,
"ok_rps": 442.5,
"error_ratio": 0,
"ok_p50_ms": 26.6757725,
"ok_p95_ms": 369.7395602499999,
"ok_p99_ms": 459.48822332000026,
"vus_max": 290,
"cpu": {
"api_total": {
"cpu_median": 173.9,
"cpu_max": 194.2,
"samples": 10
},
"api-1": {
"cpu_median": 86.2,
"cpu_max": 101.4,
"mem_last": "69.53MiB",
"samples": 10
},
"api-2": {
"cpu_median": 83.3,
"cpu_max": 102.1,
"mem_last": "71.57MiB",
"samples": 10
},
"k6": {
"cpu_median": 52.7,
"cpu_max": 62.9,
"mem_last": "109.2MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 21.7,
"cpu_max": 39.7,
"mem_last": "14.34MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.8,
"cpu_max": 67.9,
"mem_last": "106.8MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 10.2,
"cpu_max": 13.9,
"mem_last": "4.113MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8954,
"pool_wait_ms_avg": 41.406,
"pool_waiting_max": 55,
"pool_usage_ms_avg": 12.637,
"api_cpu_s": 26.96,
"intervals": 20
},
"pg": {
"xact_commit": 26388,
"xact_rollback": 0,
"tup_inserted": 26209,
"blks_read": 61,
"blks_hit": 525410,
"wal_records": 185616,
"wal_bytes": 16917023
},
"lb": {
"chkdown_delta": 0,
"qmax": 0,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 13272,
"total_ms": 7869.6,
"mean_ms": 0.5929,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 13272,
"total_ms": 142.7,
"mean_ms": 0.0107,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 83,
"total_ms": 0.5,
"mean_ms": 0.0062,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.11,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0497,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.042,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
}
],
"pg_commits_per_ok": 2.98,
"statements_per_ok": 3.01,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 10479,
"ok": 10479,
"dropped": 522,
"ok_rps": 524.0,
"error_ratio": 0,
"ok_p50_ms": 361.785411,
"ok_p95_ms": 811.7921828000001,
"ok_p99_ms": 1160.5554723199998,
"vus_max": 703,
"cpu": {
"api_total": {
"cpu_median": 196.2,
"cpu_max": 207.5,
"samples": 9
},
"api-1": {
"cpu_median": 99.2,
"cpu_max": 105.3,
"mem_last": "62.12MiB",
"samples": 9
},
"api-2": {
"cpu_median": 98.8,
"cpu_max": 105.1,
"mem_last": "62.72MiB",
"samples": 9
},
"k6": {
"cpu_median": 69.8,
"cpu_max": 96.1,
"mem_last": "234.2MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 25.6,
"cpu_max": 42.5,
"mem_last": "17.95MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 56.7,
"cpu_max": 99.4,
"mem_last": "117.7MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 11.4,
"cpu_max": 15.6,
"mem_last": "5.371MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 10611,
"pool_wait_ms_avg": 279.254,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 15.651,
"api_cpu_s": 32.8,
"intervals": 20
},
"pg": {
"xact_commit": 31270,
"xact_rollback": 0,
"tup_inserted": 31088,
"blks_read": 0,
"blks_hit": 680951,
"wal_records": 221148,
"wal_bytes": 19623791
},
"lb": {
"chkdown_delta": 0,
"qmax": 41,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 12,
"redispatch_delta": 0
},
"statements": [
{
"calls": 15664,
"total_ms": 10065.0,
"mean_ms": 0.6426,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 15664,
"total_ms": 187.9,
"mean_ms": 0.012,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 75,
"total_ms": 0.4,
"mean_ms": 0.005,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1453,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0448,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0221,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.98,
"statements_per_ok": 3.0,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 10961,
"ok": 10961,
"dropped": 2040,
"ok_rps": 548.0,
"error_ratio": 0,
"ok_p50_ms": 915.134185,
"ok_p95_ms": 1453.449344,
"ok_p99_ms": 1677.3023003999997,
"vus_max": 1141,
"cpu": {
"api_total": {
"cpu_median": 195.4,
"cpu_max": 202.2,
"samples": 10
},
"api-1": {
"cpu_median": 98.4,
"cpu_max": 104.0,
"mem_last": "63.66MiB",
"samples": 10
},
"api-2": {
"cpu_median": 97.9,
"cpu_max": 103.9,
"mem_last": "63.59MiB",
"samples": 10
},
"k6": {
"cpu_median": 65.4,
"cpu_max": 101.7,
"mem_last": "400.1MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 27.6,
"cpu_max": 40.9,
"mem_last": "20.85MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 60.5,
"cpu_max": 73.6,
"mem_last": "128.9MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.7,
"cpu_max": 12.1,
"mem_last": "4.273MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 11089,
"pool_wait_ms_avg": 626.747,
"pool_waiting_max": 185,
"pool_usage_ms_avg": 17.44,
"api_cpu_s": 33.53,
"intervals": 20
},
"pg": {
"xact_commit": 33271,
"xact_rollback": 0,
"tup_inserted": 33114,
"blks_read": 0,
"blks_hit": 1174821,
"wal_records": 234606,
"wal_bytes": 20919900
},
"lb": {
"chkdown_delta": 0,
"qmax": 200,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16701,
"total_ms": 13644.9,
"mean_ms": 0.817,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16701,
"total_ms": 222.4,
"mean_ms": 0.0133,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 64,
"total_ms": 0.3,
"mean_ms": 0.0047,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.141,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0395,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0197,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.04,
"statements_per_ok": 3.05,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 11039,
"ok": 11039,
"dropped": 3961,
"ok_rps": 552.0,
"error_ratio": 0,
"ok_p50_ms": 960.874148,
"ok_p95_ms": 1520.5090723000003,
"ok_p99_ms": 1640.0442179200002,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 200.5,
"cpu_max": 202.0,
"samples": 10
},
"api-1": {
"cpu_median": 99.6,
"cpu_max": 103.2,
"mem_last": "64.29MiB",
"samples": 10
},
"api-2": {
"cpu_median": 100.1,
"cpu_max": 103.6,
"mem_last": "76.29MiB",
"samples": 10
},
"k6": {
"cpu_median": 68.6,
"cpu_max": 111.6,
"mem_last": "430.4MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 28.1,
"cpu_max": 36.0,
"mem_last": "21.41MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 61.3,
"cpu_max": 73.9,
"mem_last": "139.5MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 7.2,
"cpu_max": 13.0,
"mem_last": "4.449MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10607,
"pool_wait_ms_avg": 634.395,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 16.752,
"api_cpu_s": 31.75,
"intervals": 19
},
"pg": {
"xact_commit": 33307,
"xact_rollback": 0,
"tup_inserted": 33146,
"blks_read": 0,
"blks_hit": 962429,
"wal_records": 234863,
"wal_bytes": 20585228
},
"lb": {
"chkdown_delta": 0,
"qmax": 220,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 46,
"redispatch_delta": 0
},
"statements": [
{
"calls": 16675,
"total_ms": 12385.9,
"mean_ms": 0.7428,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 16675,
"total_ms": 209.4,
"mean_ms": 0.0126,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 68,
"total_ms": 0.4,
"mean_ms": 0.0053,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0535,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1017,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.02,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.02,
"statements_per_ok": 3.03,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,156 @@
{
"config": "n2-api1-pg2-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 10406,
"ok": 10296,
"dropped": 6595,
"ok_rps": 514.8,
"error_ratio": 0.01057,
"ok_p50_ms": 1037.4526045,
"ok_p95_ms": 1654.535533,
"ok_p99_ms": 1831.6677941999992,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 198.0,
"cpu_max": 204.0,
"samples": 10
},
"api-1": {
"cpu_median": 98.3,
"cpu_max": 103.4,
"mem_last": "77.14MiB",
"samples": 10
},
"api-2": {
"cpu_median": 99.9,
"cpu_max": 103.6,
"mem_last": "64.56MiB",
"samples": 10
},
"k6": {
"cpu_median": 59.4,
"cpu_max": 109.8,
"mem_last": "431MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 25.3,
"cpu_max": 33.9,
"mem_last": "22.58MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 62.6,
"cpu_max": 69.4,
"mem_last": "149.1MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 8.3,
"cpu_max": 12.9,
"mem_last": "5.145MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 10429,
"pool_wait_ms_avg": 651.491,
"pool_waiting_max": 181,
"pool_usage_ms_avg": 18.496,
"api_cpu_s": 31.8,
"intervals": 20
},
"pg": {
"xact_commit": 31944,
"xact_rollback": 0,
"tup_inserted": 31792,
"blks_read": 0,
"blks_hit": 731181,
"wal_records": 225617,
"wal_bytes": 19958695
},
"lb": {
"chkdown_delta": 1,
"qmax": 400,
"up_after": 2,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 15981,
"total_ms": 11794.2,
"mean_ms": 0.738,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 15981,
"total_ms": 180.0,
"mean_ms": 0.0113,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 66,
"total_ms": 0.4,
"mean_ms": 0.0061,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.133,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0436,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0242,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.1,
"statements_per_ok": 3.11,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 2.0,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8790,
"ok": 8790,
"dropped": 210,
"ok_rps": 439.5,
"error_ratio": 0,
"ok_p50_ms": 173.556058,
"ok_p95_ms": 637.521366,
"ok_p99_ms": 798.116165,
"vus_max": 530,
"cpu": {
"api_total": {
"cpu_median": 204.2,
"cpu_max": 283.7,
"samples": 10
},
"api-1": {
"cpu_median": 59.0,
"cpu_max": 91.9,
"mem_last": "72.1MiB",
"samples": 10
},
"api-2": {
"cpu_median": 62.5,
"cpu_max": 92.5,
"mem_last": "71.03MiB",
"samples": 10
},
"api-3": {
"cpu_median": 62.5,
"cpu_max": 101.1,
"mem_last": "71.23MiB",
"samples": 10
},
"k6": {
"cpu_median": 48.4,
"cpu_max": 61.6,
"mem_last": "180.6MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 21.9,
"cpu_max": 34.2,
"mem_last": "15.61MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.8,
"cpu_max": 51.6,
"mem_last": "133.9MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 10.2,
"cpu_max": 10.8,
"mem_last": "4.062MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8874,
"pool_wait_ms_avg": 165.01,
"pool_waiting_max": 96,
"pool_usage_ms_avg": 32.283,
"api_cpu_s": 28.12,
"intervals": 30
},
"pg": {
"xact_commit": 25877,
"xact_rollback": 0,
"tup_inserted": 25628,
"blks_read": 82,
"blks_hit": 547442,
"wal_records": 186677,
"wal_bytes": 16834963
},
"lb": {
"chkdown_delta": 0,
"qmax": 0,
"up_after": 3,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12922,
"total_ms": 39562.5,
"mean_ms": 3.0616,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12922,
"total_ms": 322.8,
"mean_ms": 0.025,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 116,
"total_ms": 0.9,
"mean_ms": 0.0081,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1426,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0457,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0242,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.94,
"statements_per_ok": 2.95,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 9300,
"ok": 8240,
"dropped": 1700,
"ok_rps": 412.0,
"error_ratio": 0.11398,
"ok_p50_ms": 1170.215864,
"ok_p95_ms": 1974.8666587499997,
"ok_p99_ms": 2277.9815827899997,
"vus_max": 1159,
"cpu": {
"api_total": {
"cpu_median": 169.1,
"cpu_max": 278.4,
"samples": 10
},
"api-1": {
"cpu_median": 56.1,
"cpu_max": 84.2,
"mem_last": "75.85MiB",
"samples": 10
},
"api-2": {
"cpu_median": 54.3,
"cpu_max": 99.8,
"mem_last": "76.64MiB",
"samples": 10
},
"api-3": {
"cpu_median": 54.8,
"cpu_max": 94.4,
"mem_last": "76.37MiB",
"samples": 10
},
"k6": {
"cpu_median": 59.4,
"cpu_max": 91.3,
"mem_last": "388.4MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 23.8,
"cpu_max": 31.5,
"mem_last": "23.1MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 48.9,
"cpu_max": 52.4,
"mem_last": "144.2MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 7.5,
"cpu_max": 16.7,
"mem_last": "6.258MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8386,
"pool_wait_ms_avg": 840.394,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 38.145,
"api_cpu_s": 27.92,
"intervals": 30
},
"pg": {
"xact_commit": 26059,
"xact_rollback": 0,
"tup_inserted": 25816,
"blks_read": 0,
"blks_hit": 552611,
"wal_records": 187947,
"wal_bytes": 16599520
},
"lb": {
"chkdown_delta": 11,
"qmax": 391,
"up_after": 3,
"econ_delta": 837,
"eresp_delta": 7,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12980,
"total_ms": 37429.9,
"mean_ms": 2.8837,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12980,
"total_ms": 475.0,
"mean_ms": 0.0366,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 110,
"total_ms": 0.7,
"mean_ms": 0.0063,
"query": "SELECT $1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.1566,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0411,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.021,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.16,
"statements_per_ok": 3.16,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 9915,
"ok": 8419,
"dropped": 3086,
"ok_rps": 420.9,
"error_ratio": 0.15088,
"ok_p50_ms": 1266.367974,
"ok_p95_ms": 1660.6635666999998,
"ok_p99_ms": 1897.1363954399997,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 166.4,
"cpu_max": 234.2,
"samples": 10
},
"api-1": {
"cpu_median": 57.2,
"cpu_max": 79.7,
"mem_last": "64.21MiB",
"samples": 10
},
"api-2": {
"cpu_median": 65.9,
"cpu_max": 82.7,
"mem_last": "76.71MiB",
"samples": 10
},
"api-3": {
"cpu_median": 51.7,
"cpu_max": 100.7,
"mem_last": "64.67MiB",
"samples": 10
},
"k6": {
"cpu_median": 55.8,
"cpu_max": 102.0,
"mem_last": "413.7MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 23.6,
"cpu_max": 33.0,
"mem_last": "23.47MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.8,
"cpu_max": 53.3,
"mem_last": "154.7MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 9.4,
"cpu_max": 13.5,
"mem_last": "5.484MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8184,
"pool_wait_ms_avg": 935.549,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 39.783,
"api_cpu_s": 26.79,
"intervals": 30
},
"pg": {
"xact_commit": 25825,
"xact_rollback": 0,
"tup_inserted": 25576,
"blks_read": 0,
"blks_hit": 546309,
"wal_records": 185660,
"wal_bytes": 16062613
},
"lb": {
"chkdown_delta": 11,
"qmax": 400,
"up_after": 3,
"econ_delta": 2191,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12828,
"total_ms": 35465.6,
"mean_ms": 2.7647,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12828,
"total_ms": 571.2,
"mean_ms": 0.0445,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 112,
"total_ms": 0.7,
"mean_ms": 0.0063,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.059,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1064,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0208,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.07,
"statements_per_ok": 3.06,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 10515,
"ok": 7666,
"dropped": 4485,
"ok_rps": 383.3,
"error_ratio": 0.27095,
"ok_p50_ms": 1269.548656,
"ok_p95_ms": 1908.19258625,
"ok_p99_ms": 2006.8167474,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 161.3,
"cpu_max": 230.2,
"samples": 10
},
"api-1": {
"cpu_median": 51.9,
"cpu_max": 87.0,
"mem_last": "64.13MiB",
"samples": 10
},
"api-2": {
"cpu_median": 54.2,
"cpu_max": 81.4,
"mem_last": "76.61MiB",
"samples": 10
},
"api-3": {
"cpu_median": 54.4,
"cpu_max": 73.6,
"mem_last": "75.17MiB",
"samples": 10
},
"k6": {
"cpu_median": 66.6,
"cpu_max": 107.2,
"mem_last": "429.6MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 25.4,
"cpu_max": 27.4,
"mem_last": "24.21MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.0,
"cpu_max": 52.8,
"mem_last": "161.1MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 8.3,
"cpu_max": 13.7,
"mem_last": "5.465MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 7537,
"pool_wait_ms_avg": 1021.726,
"pool_waiting_max": 193,
"pool_usage_ms_avg": 43.516,
"api_cpu_s": 24.99,
"intervals": 30
},
"pg": {
"xact_commit": 24513,
"xact_rollback": 0,
"tup_inserted": 24268,
"blks_read": 0,
"blks_hit": 529368,
"wal_records": 176786,
"wal_bytes": 15768170
},
"lb": {
"chkdown_delta": 14,
"qmax": 400,
"up_after": 3,
"econ_delta": 2849,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12378,
"total_ms": 33430.3,
"mean_ms": 2.7008,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12378,
"total_ms": 485.7,
"mean_ms": 0.0392,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 115,
"total_ms": 3.3,
"mean_ms": 0.0289,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1198,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0576,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.025,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.2,
"statements_per_ok": 3.24,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 13175,
"ok": 7407,
"dropped": 3826,
"ok_rps": 370.4,
"error_ratio": 0.4378,
"ok_p50_ms": 1190.408763,
"ok_p95_ms": 1595.8426676,
"ok_p99_ms": 1680.2735505999997,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 150.2,
"cpu_max": 250.8,
"samples": 10
},
"api-1": {
"cpu_median": 51.9,
"cpu_max": 100.0,
"mem_last": "63.82MiB",
"samples": 10
},
"api-2": {
"cpu_median": 49.3,
"cpu_max": 93.9,
"mem_last": "64.5MiB",
"samples": 10
},
"api-3": {
"cpu_median": 51.1,
"cpu_max": 64.2,
"mem_last": "64.22MiB",
"samples": 10
},
"k6": {
"cpu_median": 63.0,
"cpu_max": 113.4,
"mem_last": "451MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 28.2,
"cpu_max": 39.0,
"mem_last": "24.21MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.3,
"cpu_max": 52.5,
"mem_last": "168MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 8.5,
"cpu_max": 13.3,
"mem_last": "5.52MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 7408,
"pool_wait_ms_avg": 975.697,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 43.788,
"api_cpu_s": 24.76,
"intervals": 30
},
"pg": {
"xact_commit": 24456,
"xact_rollback": 0,
"tup_inserted": 24210,
"blks_read": 0,
"blks_hit": 515809,
"wal_records": 174476,
"wal_bytes": 15010035
},
"lb": {
"chkdown_delta": 15,
"qmax": 400,
"up_after": 3,
"econ_delta": 6954,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12042,
"total_ms": 36552.6,
"mean_ms": 3.0354,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12042,
"total_ms": 570.5,
"mean_ms": 0.0474,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 113,
"total_ms": 0.6,
"mean_ms": 0.0051,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.2254,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0484,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0218,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.3,
"statements_per_ok": 3.27,
"repeat": 1,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8028,
"ok": 7468,
"dropped": 973,
"ok_rps": 373.4,
"error_ratio": 0.06976,
"ok_p50_ms": 1020.4746635,
"ok_p95_ms": 1811.1272992499996,
"ok_p99_ms": 2186.1001616699996,
"vus_max": 981,
"cpu": {
"api_total": {
"cpu_median": 210.8,
"cpu_max": 249.9,
"samples": 10
},
"api-1": {
"cpu_median": 58.7,
"cpu_max": 105.9,
"mem_last": "63.25MiB",
"samples": 10
},
"api-2": {
"cpu_median": 60.1,
"cpu_max": 101.1,
"mem_last": "63.34MiB",
"samples": 10
},
"api-3": {
"cpu_median": 69.6,
"cpu_max": 95.9,
"mem_last": "62.95MiB",
"samples": 10
},
"k6": {
"cpu_median": 56.0,
"cpu_max": 88.2,
"mem_last": "358.6MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 22.9,
"cpu_max": 44.9,
"mem_last": "21.85MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 51.3,
"cpu_max": 53.7,
"mem_last": "133.5MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.0,
"cpu_max": 9.3,
"mem_last": "6.43MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 7424,
"pool_wait_ms_avg": 825.496,
"pool_waiting_max": 191,
"pool_usage_ms_avg": 44.144,
"api_cpu_s": 30.9,
"intervals": 30
},
"pg": {
"xact_commit": 22916,
"xact_rollback": 0,
"tup_inserted": 22700,
"blks_read": 61,
"blks_hit": 484180,
"wal_records": 164774,
"wal_bytes": 14971261
},
"lb": {
"chkdown_delta": 7,
"qmax": 337,
"up_after": 3,
"econ_delta": 0,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 11468,
"total_ms": 38582.8,
"mean_ms": 3.3644,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 11468,
"total_ms": 423.2,
"mean_ms": 0.0369,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 110,
"total_ms": 0.8,
"mean_ms": 0.007,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0731,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1276,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0258,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.07,
"statements_per_ok": 3.09,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 9432,
"ok": 8453,
"dropped": 1568,
"ok_rps": 422.6,
"error_ratio": 0.1038,
"ok_p50_ms": 852.198264,
"ok_p95_ms": 2004.4173515999996,
"ok_p99_ms": 2230.0016709199995,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 176.6,
"cpu_max": 258.6,
"samples": 10
},
"api-1": {
"cpu_median": 63.1,
"cpu_max": 89.4,
"mem_last": "63.48MiB",
"samples": 10
},
"api-2": {
"cpu_median": 56.1,
"cpu_max": 98.9,
"mem_last": "63.62MiB",
"samples": 10
},
"api-3": {
"cpu_median": 54.3,
"cpu_max": 95.1,
"mem_last": "63.48MiB",
"samples": 10
},
"k6": {
"cpu_median": 58.5,
"cpu_max": 102.5,
"mem_last": "385.8MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 25.1,
"cpu_max": 39.4,
"mem_last": "22.57MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.5,
"cpu_max": 51.6,
"mem_last": "142.6MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.1,
"cpu_max": 7.6,
"mem_last": "5.918MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 8458,
"pool_wait_ms_avg": 761.019,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 38.972,
"api_cpu_s": 27.94,
"intervals": 30
},
"pg": {
"xact_commit": 25038,
"xact_rollback": 0,
"tup_inserted": 24768,
"blks_read": 0,
"blks_hit": 529835,
"wal_records": 179780,
"wal_bytes": 15725337
},
"lb": {
"chkdown_delta": 9,
"qmax": 337,
"up_after": 3,
"econ_delta": 1367,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12447,
"total_ms": 35866.8,
"mean_ms": 2.8816,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12447,
"total_ms": 831.3,
"mean_ms": 0.0668,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 120,
"total_ms": 1.0,
"mean_ms": 0.0081,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.1704,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.2,
"mean_ms": 0.0758,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0598,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
}
],
"pg_commits_per_ok": 2.96,
"statements_per_ok": 2.96,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 9789,
"ok": 7531,
"dropped": 3212,
"ok_rps": 376.6,
"error_ratio": 0.23067,
"ok_p50_ms": 1295.306206,
"ok_p95_ms": 1781.5179195,
"ok_p99_ms": 2203.2786076999996,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 171.9,
"cpu_max": 249.1,
"samples": 9
},
"api-1": {
"cpu_median": 61.9,
"cpu_max": 101.0,
"mem_last": "77.34MiB",
"samples": 9
},
"api-2": {
"cpu_median": 63.1,
"cpu_max": 76.4,
"mem_last": "71.54MiB",
"samples": 9
},
"api-3": {
"cpu_median": 61.2,
"cpu_max": 84.0,
"mem_last": "77.16MiB",
"samples": 9
},
"k6": {
"cpu_median": 61.3,
"cpu_max": 78.2,
"mem_last": "433.5MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 27.2,
"cpu_max": 38.6,
"mem_last": "23.69MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 49.3,
"cpu_max": 53.5,
"mem_last": "153MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 6.8,
"cpu_max": 12.8,
"mem_last": "5.434MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 7680,
"pool_wait_ms_avg": 1093.399,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 44.78,
"api_cpu_s": 27.26,
"intervals": 30
},
"pg": {
"xact_commit": 24077,
"xact_rollback": 0,
"tup_inserted": 23828,
"blks_read": 0,
"blks_hit": 509291,
"wal_records": 173929,
"wal_bytes": 15183835
},
"lb": {
"chkdown_delta": 10,
"qmax": 400,
"up_after": 3,
"econ_delta": 2234,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12165,
"total_ms": 38577.6,
"mean_ms": 3.1712,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12165,
"total_ms": 332.7,
"mean_ms": 0.0274,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 107,
"total_ms": 0.6,
"mean_ms": 0.0055,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1184,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0495,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0223,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.2,
"statements_per_ok": 3.25,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 10860,
"ok": 6713,
"dropped": 4141,
"ok_rps": 335.6,
"error_ratio": 0.38186,
"ok_p50_ms": 1359.678525,
"ok_p95_ms": 2192.974475,
"ok_p99_ms": 2381.86987288,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 173.2,
"cpu_max": 240.8,
"samples": 9
},
"api-1": {
"cpu_median": 57.4,
"cpu_max": 76.2,
"mem_last": "77.2MiB",
"samples": 9
},
"api-2": {
"cpu_median": 54.6,
"cpu_max": 114.6,
"mem_last": "64.77MiB",
"samples": 9
},
"api-3": {
"cpu_median": 51.7,
"cpu_max": 81.5,
"mem_last": "77.24MiB",
"samples": 9
},
"k6": {
"cpu_median": 66.0,
"cpu_max": 161.1,
"mem_last": "430.9MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 25.1,
"cpu_max": 49.9,
"mem_last": "23.97MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 51.5,
"cpu_max": 53.2,
"mem_last": "158.5MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 4.9,
"cpu_max": 8.6,
"mem_last": "5.352MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 7131,
"pool_wait_ms_avg": 1096.644,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 46.346,
"api_cpu_s": 24.95,
"intervals": 30
},
"pg": {
"xact_commit": 22658,
"xact_rollback": 0,
"tup_inserted": 22418,
"blks_read": 0,
"blks_hit": 489031,
"wal_records": 163243,
"wal_bytes": 14501866
},
"lb": {
"chkdown_delta": 15,
"qmax": 400,
"up_after": 3,
"econ_delta": 4713,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 11181,
"total_ms": 34563.6,
"mean_ms": 3.0913,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 11181,
"total_ms": 431.1,
"mean_ms": 0.0386,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 112,
"total_ms": 0.7,
"mean_ms": 0.0063,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.1731,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0515,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0225,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.38,
"statements_per_ok": 3.35,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 12292,
"ok": 6906,
"dropped": 4700,
"ok_rps": 345.3,
"error_ratio": 0.43817,
"ok_p50_ms": 1319.3059505,
"ok_p95_ms": 1791.506597,
"ok_p99_ms": 1941.6247549999998,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 191.7,
"cpu_max": 279.4,
"samples": 10
},
"api-1": {
"cpu_median": 62.1,
"cpu_max": 99.2,
"mem_last": "77.48MiB",
"samples": 10
},
"api-2": {
"cpu_median": 70.8,
"cpu_max": 92.0,
"mem_last": "77.47MiB",
"samples": 10
},
"api-3": {
"cpu_median": 68.6,
"cpu_max": 99.7,
"mem_last": "77.23MiB",
"samples": 10
},
"k6": {
"cpu_median": 69.1,
"cpu_max": 105.0,
"mem_last": "413.6MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 27.0,
"cpu_max": 41.9,
"mem_last": "23.96MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 49.5,
"cpu_max": 52.4,
"mem_last": "166MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 6.0,
"cpu_max": 11.2,
"mem_last": "5.273MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 6833,
"pool_wait_ms_avg": 1033.892,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 46.519,
"api_cpu_s": 24.88,
"intervals": 29
},
"pg": {
"xact_commit": 22884,
"xact_rollback": 0,
"tup_inserted": 22640,
"blks_read": 0,
"blks_hit": 484598,
"wal_records": 165392,
"wal_bytes": 14365650
},
"lb": {
"chkdown_delta": 14,
"qmax": 400,
"up_after": 3,
"econ_delta": 5383,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 11344,
"total_ms": 40476.5,
"mean_ms": 3.5681,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 11344,
"total_ms": 447.7,
"mean_ms": 0.0395,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 113,
"total_ms": 1.0,
"mean_ms": 0.0084,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.2,
"mean_ms": 0.1788,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0479,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.0,
"mean_ms": 0.0209,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.31,
"statements_per_ok": 3.3,
"repeat": 2,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 450,
"duration_s": 20,
"offered": 9000,
"requests": 8090,
"ok": 7379,
"dropped": 910,
"ok_rps": 368.9,
"error_ratio": 0.08789,
"ok_p50_ms": 451.310097,
"ok_p95_ms": 1840.6765702999996,
"ok_p99_ms": 2124.4643808800006,
"vus_max": 874,
"cpu": {
"api_total": {
"cpu_median": 235.5,
"cpu_max": 287.1,
"samples": 9
},
"api-1": {
"cpu_median": 69.3,
"cpu_max": 100.6,
"mem_last": "60.35MiB",
"samples": 9
},
"api-2": {
"cpu_median": 73.2,
"cpu_max": 101.1,
"mem_last": "59.4MiB",
"samples": 9
},
"api-3": {
"cpu_median": 63.0,
"cpu_max": 95.2,
"mem_last": "62.05MiB",
"samples": 9
},
"k6": {
"cpu_median": 64.1,
"cpu_max": 83.4,
"mem_last": "238.8MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 22.7,
"cpu_max": 35.0,
"mem_last": "21.14MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 51.3,
"cpu_max": 53.1,
"mem_last": "132MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 10.7,
"cpu_max": 16.5,
"mem_last": "4.449MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 7919,
"pool_wait_ms_avg": 458.068,
"pool_waiting_max": 163,
"pool_usage_ms_avg": 42.854,
"api_cpu_s": 29.35,
"intervals": 30
},
"pg": {
"xact_commit": 22888,
"xact_rollback": 0,
"tup_inserted": 22646,
"blks_read": 62,
"blks_hit": 475016,
"wal_records": 165053,
"wal_bytes": 14926787
},
"lb": {
"chkdown_delta": 3,
"qmax": 183,
"up_after": 3,
"econ_delta": 711,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 11466,
"total_ms": 36677.3,
"mean_ms": 3.1988,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 11466,
"total_ms": 406.0,
"mean_ms": 0.0354,
"query": "SELECT $2 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 105,
"total_ms": 0.6,
"mean_ms": 0.006,
"query": "SELECT $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0713,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1163,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0318,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.1,
"statements_per_ok": 3.12,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 550,
"duration_s": 20,
"offered": 11000,
"requests": 7806,
"ok": 6992,
"dropped": 3195,
"ok_rps": 349.6,
"error_ratio": 0.10428,
"ok_p50_ms": 1329.049919,
"ok_p95_ms": 2624.47547915,
"ok_p99_ms": 3877.989075410001,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 200.8,
"cpu_max": 259.7,
"samples": 10
},
"api-1": {
"cpu_median": 69.0,
"cpu_max": 86.6,
"mem_last": "76.41MiB",
"samples": 10
},
"api-2": {
"cpu_median": 60.7,
"cpu_max": 93.4,
"mem_last": "63.8MiB",
"samples": 10
},
"api-3": {
"cpu_median": 69.0,
"cpu_max": 93.8,
"mem_last": "76.05MiB",
"samples": 10
},
"k6": {
"cpu_median": 57.9,
"cpu_max": 90.1,
"mem_last": "435.4MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 23.9,
"cpu_max": 43.8,
"mem_last": "23.68MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 50.5,
"cpu_max": 52.6,
"mem_last": "141.2MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 10.4,
"cpu_max": 16.2,
"mem_last": "6.531MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 6785,
"pool_wait_ms_avg": 911.706,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 45.834,
"api_cpu_s": 27.71,
"intervals": 29
},
"pg": {
"xact_commit": 20854,
"xact_rollback": 0,
"tup_inserted": 20602,
"blks_read": 0,
"blks_hit": 440293,
"wal_records": 149822,
"wal_bytes": 13205400
},
"lb": {
"chkdown_delta": 13,
"qmax": 400,
"up_after": 3,
"econ_delta": 598,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 10368,
"total_ms": 38690.9,
"mean_ms": 3.7318,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 10368,
"total_ms": 347.1,
"mean_ms": 0.0335,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 114,
"total_ms": 0.7,
"mean_ms": 0.0059,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1431,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.05,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0259,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 2.98,
"statements_per_ok": 2.98,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 650,
"duration_s": 20,
"offered": 13000,
"requests": 9019,
"ok": 7899,
"dropped": 3981,
"ok_rps": 394.9,
"error_ratio": 0.12418,
"ok_p50_ms": 1350.057973,
"ok_p95_ms": 1867.7866874,
"ok_p99_ms": 2249.028925279999,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 171.5,
"cpu_max": 281.7,
"samples": 10
},
"api-1": {
"cpu_median": 66.6,
"cpu_max": 85.3,
"mem_last": "64.37MiB",
"samples": 10
},
"api-2": {
"cpu_median": 60.2,
"cpu_max": 100.4,
"mem_last": "65.82MiB",
"samples": 10
},
"api-3": {
"cpu_median": 51.3,
"cpu_max": 96.9,
"mem_last": "63.94MiB",
"samples": 10
},
"k6": {
"cpu_median": 57.7,
"cpu_max": 99.7,
"mem_last": "442.8MiB",
"samples": 10
},
"lb-1": {
"cpu_median": 24.6,
"cpu_max": 29.8,
"mem_last": "24.17MiB",
"samples": 10
},
"postgres-1": {
"cpu_median": 50.0,
"cpu_max": 53.6,
"mem_last": "148.5MiB",
"samples": 10
},
"valkey-1": {
"cpu_median": 7.0,
"cpu_max": 14.5,
"mem_last": "5.562MiB",
"samples": 10
}
},
"pool": {
"pool_requests": 7870,
"pool_wait_ms_avg": 1010.098,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 41.34,
"api_cpu_s": 26.64,
"intervals": 30
},
"pg": {
"xact_commit": 24388,
"xact_rollback": 0,
"tup_inserted": 24142,
"blks_read": 0,
"blks_hit": 514707,
"wal_records": 174564,
"wal_bytes": 15133331
},
"lb": {
"chkdown_delta": 14,
"qmax": 400,
"up_after": 3,
"econ_delta": 1025,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 12030,
"total_ms": 39377.5,
"mean_ms": 3.2733,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 12030,
"total_ms": 469.4,
"mean_ms": 0.039,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 116,
"total_ms": 0.7,
"mean_ms": 0.006,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1272,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0476,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0311,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.09,
"statements_per_ok": 3.06,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 750,
"duration_s": 20,
"offered": 15000,
"requests": 11455,
"ok": 6345,
"dropped": 3546,
"ok_rps": 317.2,
"error_ratio": 0.44609,
"ok_p50_ms": 1387.149728,
"ok_p95_ms": 2148.657413,
"ok_p99_ms": 2289.0639938399995,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 178.2,
"cpu_max": 243.0,
"samples": 9
},
"api-1": {
"cpu_median": 54.5,
"cpu_max": 88.9,
"mem_last": "64.24MiB",
"samples": 9
},
"api-2": {
"cpu_median": 53.9,
"cpu_max": 85.3,
"mem_last": "78.57MiB",
"samples": 9
},
"api-3": {
"cpu_median": 55.1,
"cpu_max": 98.3,
"mem_last": "64.06MiB",
"samples": 9
},
"k6": {
"cpu_median": 62.8,
"cpu_max": 113.3,
"mem_last": "426.4MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 27.3,
"cpu_max": 33.1,
"mem_last": "24.36MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 50.0,
"cpu_max": 54.0,
"mem_last": "155.8MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 5.4,
"cpu_max": 10.0,
"mem_last": "5.148MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 6697,
"pool_wait_ms_avg": 1165.938,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 49.092,
"api_cpu_s": 23.5,
"intervals": 30
},
"pg": {
"xact_commit": 21016,
"xact_rollback": 0,
"tup_inserted": 20770,
"blks_read": 0,
"blks_hit": 455078,
"wal_records": 151969,
"wal_bytes": 13418130
},
"lb": {
"chkdown_delta": 14,
"qmax": 400,
"up_after": 3,
"econ_delta": 4981,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 10624,
"total_ms": 36982.9,
"mean_ms": 3.4811,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 10624,
"total_ms": 701.4,
"mean_ms": 0.066,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 108,
"total_ms": 0.6,
"mean_ms": 0.0059,
"query": "SELECT 1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0499,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.0954,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0419,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
}
],
"pg_commits_per_ok": 3.31,
"statements_per_ok": 3.37,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -0,0 +1,168 @@
{
"config": "n3-api1-pg0.5-pool10-message_write_path_function",
"rate": 850,
"duration_s": 20,
"offered": 17000,
"requests": 12025,
"ok": 6897,
"dropped": 4975,
"ok_rps": 344.9,
"error_ratio": 0.42644,
"ok_p50_ms": 1361.580403,
"ok_p95_ms": 1670.7012224,
"ok_p99_ms": 1839.83932316,
"vus_max": 1200,
"cpu": {
"api_total": {
"cpu_median": 151.6,
"cpu_max": 246.3,
"samples": 9
},
"api-1": {
"cpu_median": 64.6,
"cpu_max": 88.1,
"mem_last": "78.3MiB",
"samples": 9
},
"api-2": {
"cpu_median": 60.1,
"cpu_max": 83.0,
"mem_last": "66.11MiB",
"samples": 9
},
"api-3": {
"cpu_median": 49.6,
"cpu_max": 80.0,
"mem_last": "64.1MiB",
"samples": 9
},
"k6": {
"cpu_median": 76.5,
"cpu_max": 110.1,
"mem_last": "436.7MiB",
"samples": 9
},
"lb-1": {
"cpu_median": 27.1,
"cpu_max": 41.3,
"mem_last": "24.64MiB",
"samples": 9
},
"postgres-1": {
"cpu_median": 49.9,
"cpu_max": 55.0,
"mem_last": "163.4MiB",
"samples": 9
},
"valkey-1": {
"cpu_median": 10.2,
"cpu_max": 15.1,
"mem_last": "5.234MiB",
"samples": 9
}
},
"pool": {
"pool_requests": 6991,
"pool_wait_ms_avg": 1098.253,
"pool_waiting_max": 192,
"pool_usage_ms_avg": 46.956,
"api_cpu_s": 25.03,
"intervals": 30
},
"pg": {
"xact_commit": 22496,
"xact_rollback": 0,
"tup_inserted": 22254,
"blks_read": 0,
"blks_hit": 475366,
"wal_records": 162447,
"wal_bytes": 14519850
},
"lb": {
"chkdown_delta": 15,
"qmax": 400,
"up_after": 3,
"econ_delta": 6077,
"eresp_delta": 0,
"redispatch_delta": 0
},
"statements": [
{
"calls": 11292,
"total_ms": 35178.3,
"mean_ms": 3.1153,
"query": "SELECT o_status, o_id, o_text, o_created_at FROM post_message($1, $2, $3, $4, $5, $6, $7)"
},
{
"calls": 11292,
"total_ms": 498.3,
"mean_ms": 0.0441,
"query": "SELECT 1 FROM ONLY \"public\".\"messages\" x WHERE \"id\" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
},
{
"calls": 110,
"total_ms": 0.8,
"mean_ms": 0.0077,
"query": "SELECT 1"
},
{
"calls": 1,
"total_ms": 0.1,
"mean_ms": 0.1114,
"query": "SELECT pg_stat_statements_reset()"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.0448,
"query": "SELECT xact_commit, xact_rollback, tup_inserted, blks_read, blks_hit FROM pg_stat_database WHERE datname = $1"
},
{
"calls": 2,
"total_ms": 0.1,
"mean_ms": 0.031,
"query": "SELECT wal_records, wal_bytes FROM pg_stat_wal"
}
],
"pg_commits_per_ok": 3.26,
"statements_per_ok": 3.29,
"repeat": 3,
"limits": {
"api-1": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-2": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"api-3": {
"cpus": 1.0,
"memory_mib": 384,
"cpuset": "5-7",
"image": "mtusi-messenger:bench-4830be4"
},
"lb-1": {
"cpus": 1.0,
"memory_mib": 128,
"cpuset": "2",
"image": "haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122"
},
"postgres-1": {
"cpus": 0.5,
"memory_mib": 1024,
"cpuset": "3-4",
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c"
},
"valkey-1": {
"cpus": 0.5,
"memory_mib": 256,
"cpuset": "2",
"image": "valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571"
}
}
}
@@ -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
@@ -0,0 +1,54 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 420" font-family="system-ui, sans-serif" font-size="12">
<style>.bg{fill:#fcfcfb}.ink{fill:#0b0b0b}.ink2{fill:#52514e}.grid{stroke:#e4e3df}.ref{stroke:#b5b3ac}.l0{stroke:#2a78d6;fill:none}.d0{fill:#2a78d6;stroke:#fcfcfb}.l1{stroke:#eb6834;fill:none}.d1{fill:#eb6834;stroke:#fcfcfb}.l2{stroke:#1baf7a;fill:none}.d2{fill:#1baf7a;stroke:#fcfcfb}.l3{stroke:#eda100;fill:none}.d3{fill:#eda100;stroke:#fcfcfb}@media (prefers-color-scheme: dark){.bg{fill:#1a1a19}.ink{fill:#fff}.ink2{fill:#c3c2b7}.grid{stroke:#34332f}.ref{stroke:#6b6a64}.l0{stroke:#3987e5}.d0{fill:#3987e5;stroke:#1a1a19}.l1{stroke:#d95926}.d1{fill:#d95926;stroke:#1a1a19}.l2{stroke:#199e70}.d2{fill:#199e70;stroke:#1a1a19}.l3{stroke:#c98500}.d3{fill:#c98500;stroke:#1a1a19}}</style>
<rect class="bg" width="760" height="420"/>
<text class="ink" x="64" y="22" font-size="14" font-weight="600">E-improved-ceiling/4830be4</text>
<line class="grid" x1="64" x2="550" y1="368.0" y2="368.0" stroke-width="1"/>
<text class="ink2" x="56" y="372.0" text-anchor="end">0</text>
<line class="grid" x1="64" x2="550" y1="297.8" y2="297.8" stroke-width="1"/>
<text class="ink2" x="56" y="301.8" text-anchor="end">200</text>
<line class="grid" x1="64" x2="550" y1="227.7" y2="227.7" stroke-width="1"/>
<text class="ink2" x="56" y="231.7" text-anchor="end">400</text>
<line class="grid" x1="64" x2="550" y1="157.5" y2="157.5" stroke-width="1"/>
<text class="ink2" x="56" y="161.5" text-anchor="end">600</text>
<line class="grid" x1="64" x2="550" y1="87.4" y2="87.4" stroke-width="1"/>
<text class="ink2" x="56" y="91.4" text-anchor="end">800</text>
<text class="ink2" x="309.0" y="386" text-anchor="middle">450</text>
<text class="ink2" x="363.5" y="386" text-anchor="middle">550</text>
<text class="ink2" x="417.9" y="386" text-anchor="middle">650</text>
<text class="ink2" x="472.4" y="386" text-anchor="middle">750</text>
<text class="ink2" x="526.9" y="386" text-anchor="middle">850</text>
<text class="ink2" x="307.0" y="408" text-anchor="middle">предложенная нагрузка, запросов/с (open-loop)</text>
<text class="ink2" transform="translate(16 204.0) rotate(-90)" text-anchor="middle">успешных запросов/с (201)</text>
<line class="ref" x1="64.0" y1="368.0" x2="526.9" y2="69.8" stroke-width="1"/>
<text class="ink2" x="357.5" y="167.1" text-anchor="end">обслужено = предложено</text>
<polyline class="l0" points="309.0,212.5 363.5,183.8 417.9,175.8 472.4,182.0 526.9,182.2" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l0" x1="309.0" x2="309.0" y1="212.8" y2="211.9" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="309.0" cy="212.5" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 450/с, успешно 443.2/с (повторы 442.5–445.1), p95 332 мс</title></circle>
<line class="l0" x1="363.5" x2="363.5" y1="184.2" y2="182.4" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="363.5" cy="183.8" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 550/с, успешно 525.1/с (повторы 524–529), p95 812 мс</title></circle>
<line class="l0" x1="417.9" x2="417.9" y1="212.3" y2="174.2" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="417.9" cy="175.8" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 650/с, успешно 548/с (повторы 443.8–552.4), p95 1453 мс</title></circle>
<line class="l0" x1="472.4" x2="472.4" y1="208.1" y2="174.4" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="472.4" cy="182.0" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 750/с, успешно 530.2/с (повторы 455.8–552), p95 1574 мс</title></circle>
<line class="l0" x1="526.9" x2="526.9" y1="187.4" y2="174.2" stroke-width="2" opacity="0.5"/>
<circle class="d0" cx="526.9" cy="182.2" r="4" stroke-width="2"><title>2 × 1 CPU API, БД 2 CPU, запись function: предложено 850/с, успешно 529.6/с (повторы 514.8–552.5), p95 1655 мс</title></circle>
<text class="ink2" x="417.9" y="165.8" text-anchor="middle">max 548</text>
<line class="l0" x1="584" x2="602" y1="50" y2="50" stroke-width="2"/>
<text class="ink" x="608" y="54">2 × 1 CPU API, БД 2</text>
<text class="ink" x="608" y="68">CPU, запись function</text>
<polyline class="l1" points="309.0,237.0 363.5,223.5 417.9,229.5 472.4,250.3 526.9,246.9" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
<line class="l1" x1="309.0" x2="309.0" y1="238.6" y2="213.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="309.0" cy="237.0" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 450/с, успешно 373.4/с (повторы 368.9–439.5), p95 1811 мс</title></circle>
<line class="l1" x1="363.5" x2="363.5" y1="245.4" y2="219.8" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="363.5" cy="223.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 550/с, успешно 412/с (повторы 349.6–422.6), p95 2004 мс</title></circle>
<line class="l1" x1="417.9" x2="417.9" y1="235.9" y2="220.3" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="417.9" cy="229.5" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 650/с, успешно 394.9/с (повторы 376.6–420.9), p95 1782 мс</title></circle>
<line class="l1" x1="472.4" x2="472.4" y1="256.7" y2="233.5" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="472.4" cy="250.3" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 750/с, успешно 335.6/с (повторы 317.2–383.3), p95 2149 мс</title></circle>
<line class="l1" x1="526.9" x2="526.9" y1="247.0" y2="238.1" stroke-width="2" opacity="0.5"/>
<circle class="d1" cx="526.9" cy="246.9" r="4" stroke-width="2"><title>3 × 1 CPU API, БД 0.5 CPU, запись function: предложено 850/с, успешно 345.3/с (повторы 344.9–370.4), p95 1671 мс</title></circle>
<text class="ink2" x="363.5" y="213.5" text-anchor="middle">max 412</text>
<line class="l1" x1="584" x2="602" y1="90" y2="90" stroke-width="2"/>
<text class="ink" x="608" y="94">3 × 1 CPU API, БД 0.5</text>
<text class="ink" x="608" y="108">CPU, запись function</text>
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB

@@ -0,0 +1,67 @@
# py-spy, 20 s at 250 Hz, ONE replica of n2-api1-pg2-pool10, k6 240 req/s (ok 235.6 req/s for the whole stand)
# label baseline-3f45eb1, commit 3f45eb1; samples 3889 (idle in the event loop poll: 0.0 %)
## Share of samples by library (innermost known frame)
52.7 % psycopg (PostgreSQL driver + pool)
23.0 % asyncio / uvloop (event loop)
9.6 % messenger (our code)
4.4 % uvicorn + httptools (HTTP server)
3.7 % redis-py (Valkey client)
2.9 % logging (access log JSON lines)
2.2 % starlette (routing, middleware, responses)
1.3 % json (stdlib)
0.2 % other
## Top 25 functions by SELF time (on top of the stack)
15.5 % run (asyncio/runners.py)
13.8 % wait_async (psycopg/waiting.py)
7.1 % _exec_command (psycopg/_connection_base.py)
5.8 % _send_query_prepared (psycopg/_cursor_base.py)
4.1 % _maybe_prepare_gen (psycopg/_cursor_base.py)
2.9 % send (http/httptools_impl.py)
2.1 % _execute_send (psycopg/_cursor_base.py)
1.9 % writelines (asyncio/streams.py)
1.3 % _select_current_result (psycopg/_cursor_base.py)
1.1 % unit (messenger/db.py)
1.1 % wait (psycopg/connection_async.py)
1.1 % rfc3339 (messenger/timefmt.py)
1.0 % __call__ (messenger/app.py)
0.9 % reschedule (asyncio/timeouts.py)
0.9 % work (messenger/repo.py)
0.9 % wakeup (psycopg/waiting.py)
0.8 % maybe_add_to_cache (psycopg/_preparing.py)
0.8 % convert (psycopg/_queries.py)
0.8 % get (psycopg/_preparing.py)
0.7 % ensure_future (asyncio/tasks.py)
0.7 % execute (psycopg/connection_async.py)
0.7 % getconn (psycopg_pool/pool_async.py)
0.6 % __aenter__ (contextlib.py)
0.6 % __aexit__ (asyncio/timeouts.py)
0.6 % execute (psycopg/cursor_async.py)
## Top 25 functions by TOTAL time (anywhere in the stack)
46.6 % run (asyncio/runners.py)
46.6 % <module> (messenger/__main__.py)
46.6 % run (uvicorn/server.py)
46.6 % main (messenger/__main__.py)
46.6 % _run_module_as_main (<frozen runpy>)
46.6 % _run_code (<frozen runpy>)
27.8 % wait_async (psycopg/waiting.py)
27.4 % wait (psycopg/connection_async.py)
20.3 % unit (messenger/db.py)
15.3 % _maybe_prepare_gen (psycopg/_cursor_base.py)
14.9 % execute (psycopg/cursor_async.py)
14.7 % _execute_gen (psycopg/_cursor_base.py)
13.9 % execute (psycopg/connection_async.py)
11.9 % __call__ (messenger/app.py)
11.8 % app (starlette/routing.py)
11.4 % wrapped_app (starlette/_exception_handler.py)
11.1 % __call__ (middleware/errors.py)
10.8 % work (messenger/repo.py)
10.5 % __call__ (starlette/applications.py)
10.3 % create_message (messenger/app.py)
10.1 % run_asgi (http/httptools_impl.py)
9.6 % handle (starlette/routing.py)
9.1 % __call__ (starlette/routing.py)
8.7 % __call__ (middleware/exceptions.py)
7.5 % _exec_command (psycopg/_connection_base.py)
@@ -0,0 +1,67 @@
# py-spy, 20 s at 250 Hz, ONE replica of n2-api1-pg2-pool10-message_write_path_function, k6 240 req/s (ok 239.9 req/s for the whole stand)
# label function-4830be4, commit 4830be4; samples 2026 (idle in the event loop poll: 0.0 %)
## Share of samples by library (innermost known frame)
48.9 % asyncio / uvloop (event loop)
19.0 % psycopg (PostgreSQL driver + pool)
10.6 % messenger (our code)
6.3 % uvicorn + httptools (HTTP server)
6.1 % logging (access log JSON lines)
4.7 % redis-py (Valkey client)
2.3 % json (stdlib)
2.1 % starlette (routing, middleware, responses)
0.1 % other
## Top 25 functions by SELF time (on top of the stack)
39.0 % run (asyncio/runners.py)
4.7 % send (http/httptools_impl.py)
3.8 % wait_async (psycopg/waiting.py)
3.8 % _execute_send (psycopg/_cursor_base.py)
3.5 % writelines (asyncio/streams.py)
3.0 % emit (logging/__init__.py)
2.1 % _maybe_prepare_gen (psycopg/_cursor_base.py)
1.9 % reschedule (asyncio/timeouts.py)
1.5 % _send_query_prepared (psycopg/_cursor_base.py)
1.3 % format (messenger/logging_setup.py)
1.2 % rfc3339 (messenger/timefmt.py)
1.0 % __call__ (messenger/app.py)
0.9 % iterencode (json/encoder.py)
0.9 % ensure_future (asyncio/tasks.py)
0.8 % token_hash (messenger/sessions.py)
0.8 % post_message_single_call (messenger/repo.py)
0.7 % __aexit__ (asyncio/timeouts.py)
0.7 % read_json (messenger/app.py)
0.6 % _call (messenger/sessions.py)
0.6 % create_message (messenger/app.py)
0.6 % request_fingerprint (messenger/app.py)
0.5 % connection (psycopg_pool/pool_async.py)
0.5 % fetchone (psycopg/cursor_async.py)
0.5 % unit (messenger/db.py)
0.5 % __init__ (psycopg/_cursor_base.py)
## Top 25 functions by TOTAL time (anywhere in the stack)
62.4 % _run_code (<frozen runpy>)
62.4 % main (messenger/__main__.py)
62.4 % <module> (messenger/__main__.py)
62.4 % run (asyncio/runners.py)
62.4 % run (uvicorn/server.py)
62.4 % _run_module_as_main (<frozen runpy>)
14.7 % app (starlette/routing.py)
14.5 % __call__ (messenger/app.py)
14.1 % wrapped_app (starlette/_exception_handler.py)
13.6 % __call__ (middleware/errors.py)
12.7 % __call__ (starlette/applications.py)
12.5 % create_message (messenger/app.py)
12.4 % run_asgi (http/httptools_impl.py)
12.2 % handle (starlette/routing.py)
11.2 % __call__ (starlette/routing.py)
11.2 % wait (psycopg/connection_async.py)
11.1 % wait_async (psycopg/waiting.py)
9.8 % __call__ (middleware/exceptions.py)
9.5 % execute (psycopg/cursor_async.py)
9.4 % _execute_gen (psycopg/_cursor_base.py)
8.9 % execute (psycopg/connection_async.py)
8.6 % _maybe_prepare_gen (psycopg/_cursor_base.py)
8.2 % unit (messenger/db.py)
6.4 % _log (logging/__init__.py)
5.8 % handle (logging/__init__.py)
+28
View File
@@ -163,3 +163,31 @@
![D-improvement/4830be4](D-improvement/4830be4/throughput.svg)
## E-improved-ceiling
### E-improved-ceiling/4830be4
| Конфигурация | Повторов | Потолок, успешных/с (медиана, мин–макс) | SLO-ёмкость, предложено/с | p95 на потолке, мс | CPU API / лимит | CPU БД / лимит | CPU LB | CPU k6 | Ожидание пула, мс | SQL-операторов на сообщение | Узкое место |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2 × 1 CPU API, БД 2 CPU, запись function | 3 | **552** (530–552) | 450 | 1453 | 195 % / 200 % | 66 % / 200 % | 26 % | 65 % | 629.2 | 3.1 | API CPU |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 3 | **423** (395–440) | 0 | 2004 | 177 % / 300 % | 50 % / 50 % | 24 % | 58 % | 840.4 | 3.0 | PostgreSQL CPU |
<details><summary>Все ступени (медианы по повторам)</summary>
| Конфигурация | Предложено/с | Успешно/с (мин–макс) | p95, мс | Ошибки | Dropped | CPU API | CPU БД | Ожидание пула, мс | DOWN в LB |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2 × 1 CPU API, БД 2 CPU, запись function | 450 | 443.2 (442–445) | 332 | 0.0000 | 136 | 169 % | 48 % | 41.4 | 0 |
| 2 × 1 CPU API, БД 2 CPU, запись function | 550 | 525.1 (524–529) | 812 | 0.0000 | 497 | 195 % | 60 % | 224.5 | 0 |
| 2 × 1 CPU API, БД 2 CPU, запись function | 650 | 548.0 (444–552) | 1453 | 0.0000 | 2040 | 195 % | 66 % | 629.2 | 2 |
| 2 × 1 CPU API, БД 2 CPU, запись function | 750 | 530.2 (456–552) | 1574 | 0.0000 | 4396 | 196 % | 65 % | 657.6 | 1 |
| 2 × 1 CPU API, БД 2 CPU, запись function | 850 | 529.6 (515–552) | 1655 | 0.0000 | 6351 | 198 % | 61 % | 636.4 | 1 |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 450 | 373.4 (369–440) | 1811 | 0.0698 | 910 | 211 % | 51 % | 458.1 | 10 |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 550 | 412.0 (350–423) | 2004 | 0.1043 | 1700 | 177 % | 50 % | 840.4 | 33 |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 650 | 394.9 (377–421) | 1782 | 0.1509 | 3212 | 172 % | 50 % | 1010.1 | 35 |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 750 | 335.6 (317–383) | 2149 | 0.3819 | 4141 | 173 % | 50 % | 1096.6 | 43 |
| 3 × 1 CPU API, БД 0.5 CPU, запись function | 850 | 345.3 (345–370) | 1671 | 0.4378 | 4700 | 152 % | 50 % | 1033.9 | 44 |
</details>
![E-improved-ceiling/4830be4](E-improved-ceiling/4830be4/throughput.svg)