lab4: бенчмарк — пользователь на поток, худший вход, классификация отказов

This commit is contained in:
2026-10-23 17:18:54 +03:00
parent 4b53e03fd6
commit 9caa0313be
17 changed files with 1343 additions and 877 deletions
+3 -2
View File
@@ -22,8 +22,9 @@ bench proxy 9961472 20
# Worst case for memory: every request carries the heaviest valid image
# (40 MP RGBA16 Adam7 PNG padded to 10 MiB, ~340 MiB per decode) and C=32
# saturates UPLOAD_MAX_IN_FLIGHT (16) on both replicas.
worst=$(mktemp --suffix=.png)
trap 'rm -f "$worst"' EXIT
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
worst="$tmp/worst-40mp-rgba16-adam7.png"
python3 scripts/lab4/pngkit.py > "$worst"
for mode in proxy direct; do
echo "== $mode worst-case image c=32"