Разбить API на модули и перевести комментарии на русский

This commit is contained in:
celis
2026-10-29 22:26:25 +03:00
parent c4f9eb7648
commit e8ba028b89
29 changed files with 630 additions and 456 deletions
+2 -2
View File
@@ -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: