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>
84 lines
10 KiB
XML
84 lines
10 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">B-replicas-vs-db/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="293.5" y2="293.5" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="297.5" text-anchor="end">100</text>
|
||
<line class="grid" x1="64" x2="550" y1="218.9" y2="218.9" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="222.9" text-anchor="end">200</text>
|
||
<line class="grid" x1="64" x2="550" y1="144.4" y2="144.4" stroke-width="1"/>
|
||
<text class="ink2" x="56" y="148.4" text-anchor="end">300</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">400</text>
|
||
<text class="ink2" x="179.7" y="386" text-anchor="middle">100</text>
|
||
<text class="ink2" x="237.6" y="386" text-anchor="middle">150</text>
|
||
<text class="ink2" x="295.4" y="386" text-anchor="middle">200</text>
|
||
<text class="ink2" x="353.3" y="386" text-anchor="middle">250</text>
|
||
<text class="ink2" x="411.1" y="386" text-anchor="middle">300</text>
|
||
<text class="ink2" x="469.0" y="386" text-anchor="middle">350</text>
|
||
<text class="ink2" x="526.9" y="386" text-anchor="middle">400</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="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="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="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>
|