forked from mtusi2026/mtusi2026lab3
Разбить API на модули и перевести комментарии на русский
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Aggregate evidence/track1/raw/*.json (k6 summaries) + *.cpu into a Markdown table and an SVG chart."""
|
||||
"""Сводит итоги k6 (*.json) и снимки CPU (*.cpu) в Markdown-таблицу и SVG-график."""
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
@@ -27,7 +27,7 @@ for cfg, rate, d, cpu in rows:
|
||||
print(f"| {cfg} | {rate} | {d['successful_rps']} | {d['failed']} | {d['dropped_iterations']} | {l['p50']:.1f} | {l['p95']:.1f} | {l['p99']:.1f} | "
|
||||
f"{cpu.get('api', 0):.0f} | {cpu.get('postgres', 0):.0f} | {cpu.get('lb', 0):.0f} |")
|
||||
|
||||
# SVG: successful RPS vs offered RPS, one line per configuration.
|
||||
# SVG: успешные RPS от поданной нагрузки, по линии на конфигурацию.
|
||||
W, H, P = 640, 380, 50
|
||||
series = {}
|
||||
for cfg, rate, d, _ in rows:
|
||||
|
||||
Reference in New Issue
Block a user