forked from mtusi2026/mtusi2026lab3
Профиль при 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>
67 lines
7.7 KiB
XML
67 lines
7.7 KiB
XML
<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">C-db-growth/baseline</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="308.4" y2="308.4" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="312.4" text-anchor="end">100</text>
|
||
<line class="grid" x1="64" x2="550" y1="248.7" y2="248.7" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="252.7" text-anchor="end">200</text>
|
||
<line class="grid" x1="64" x2="550" y1="189.1" y2="189.1" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="193.1" text-anchor="end">300</text>
|
||
<line class="grid" x1="64" x2="550" y1="129.5" y2="129.5" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="133.5" text-anchor="end">400</text>
|
||
<line class="grid" x1="64" x2="550" y1="69.8" y2="69.8" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="73.8" text-anchor="end">500</text>
|
||
<text class="ink2" x="249.1" y="386" text-anchor="middle">200</text>
|
||
<text class="ink2" x="295.4" y="386" text-anchor="middle">250</text>
|
||
<text class="ink2" x="341.7" y="386" text-anchor="middle">300</text>
|
||
<text class="ink2" x="388.0" y="386" text-anchor="middle">350</text>
|
||
<text class="ink2" x="434.3" y="386" text-anchor="middle">400</text>
|
||
<text class="ink2" x="480.6" y="386" text-anchor="middle">450</text>
|
||
<text class="ink2" x="526.9" y="386" text-anchor="middle">500</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="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="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>
|