Files
mtusi2026lab3/evidence/grade5/01-saturation.svg
T
2026-10-25 21:46:21 +03:00

64 lines
3.6 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="620" viewBox="0 0 1120 620">
<rect width="100%" height="100%" fill="#0e1013"/>
<style>
text { font-family: Inter, Segoe UI, sans-serif; fill: #eceef0; }
.title { font-size: 26px; font-weight: 650; }
.subtitle { font-size: 14px; fill: #aeb2b8; }
.label { font-size: 14px; fill: #c8cbd0; }
.small { font-size: 12px; fill: #a2a5aa; }
.grid { stroke: #34373d; stroke-width: 1; }
.axis { stroke: #747981; stroke-width: 1.5; }
.line { fill: none; stroke: #f4f5f6; stroke-width: 3; }
.line2 { fill: none; stroke: #92979f; stroke-width: 3; }
.point { fill: #f4f5f6; }
.point2 { fill: #92979f; }
.bar { fill: #d7d9dc; }
.bar2 { fill: #777c84; }
.bar3 { fill: #4c5057; }
.threshold { stroke: #8f949c; stroke-width: 2; stroke-dasharray: 7 5; }
</style>
<text x="50" y="44" class="title">Saturation curve</text>
<text x="50" y="70" class="subtitle">Two API replicas; 1 CPU total; 16 total DB connections; PostgreSQL limited to 1 CPU</text>
<line x1="90" y1="500.0" x2="1030" y2="500.0" class="grid"/>
<text x="78" y="504.0" text-anchor="end" class="small">0</text>
<line x1="90" y1="422.0" x2="1030" y2="422.0" class="grid"/>
<text x="78" y="426.0" text-anchor="end" class="small">124</text>
<line x1="90" y1="344.0" x2="1030" y2="344.0" class="grid"/>
<text x="78" y="348.0" text-anchor="end" class="small">248</text>
<line x1="90" y1="266.0" x2="1030" y2="266.0" class="grid"/>
<text x="78" y="270.0" text-anchor="end" class="small">372</text>
<line x1="90" y1="188.0" x2="1030" y2="188.0" class="grid"/>
<text x="78" y="192.0" text-anchor="end" class="small">496</text>
<line x1="90" y1="110.0" x2="1030" y2="110.0" class="grid"/>
<text x="78" y="114.0" text-anchor="end" class="small">620</text>
<circle cx="90.0" cy="355.2" r="6" class="point"/>
<circle cx="90.0" cy="481.1" r="6" class="point2"/>
<text x="90.0" y="528" text-anchor="middle" class="label">1</text>
<text x="90.0" y="343.2" text-anchor="middle" class="small">230</text>
<circle cx="278.0" cy="298.7" r="6" class="point"/>
<circle cx="278.0" cy="473.1" r="6" class="point2"/>
<text x="278.0" y="528" text-anchor="middle" class="label">2</text>
<text x="278.0" y="286.7" text-anchor="middle" class="small">320</text>
<circle cx="466.0" cy="226.0" r="6" class="point"/>
<circle cx="466.0" cy="390.4" r="6" class="point2"/>
<text x="466.0" y="528" text-anchor="middle" class="label">4</text>
<text x="466.0" y="214.0" text-anchor="middle" class="small">436</text>
<circle cx="654.0" cy="204.0" r="6" class="point"/>
<circle cx="654.0" cy="289.7" r="6" class="point2"/>
<text x="654.0" y="528" text-anchor="middle" class="label">8</text>
<text x="654.0" y="192.0" text-anchor="middle" class="small">471</text>
<circle cx="842.0" cy="202.7" r="6" class="point"/>
<circle cx="842.0" cy="224.6" r="6" class="point2"/>
<text x="842.0" y="528" text-anchor="middle" class="label">16</text>
<text x="842.0" y="190.7" text-anchor="middle" class="small">473</text>
<circle cx="1030.0" cy="145.5" r="6" class="point"/>
<circle cx="1030.0" cy="145.5" r="6" class="point2"/>
<text x="1030.0" y="528" text-anchor="middle" class="label">32</text>
<text x="1030.0" y="133.5" text-anchor="middle" class="small">564</text>
<polyline points="90.0,355.2 278.0,298.7 466.0,226.0 654.0,204.0 842.0,202.7 1030.0,145.5" class="line"/>
<polyline points="90.0,481.1 278.0,473.1 466.0,390.4 654.0,289.7 842.0,224.6 1030.0,145.5" class="line2"/>
<text x="90" y="562" class="label">Concurrency</text>
<text x="810" y="562" class="label">white: RPS · gray: p95 normalized</text>
<text x="30" y="305.0" transform="rotate(-90 30 305.0)" class="label">Successful requests per second</text>
</svg>