返回 DeepSeek-Reasonix
1 #!/usr/bin/env bash
2 # Full soak: replays 45s of recorded traffic. There is no quick subset.
3 sleep 45
4 python3 - <<'PY'
5 from metrics import p95, rate
6 assert p95([1, 2, 3, 4, 5]) == 5
7 assert rate([], 0) == 0.0
8 print("soak ok")
9 PY
10
10 lines BASH