mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
bench: 75th percentile latency, loops for -L, BENCH_WORKERS
The CSV has p50, p75, p90 and p99 now, for wrk (its --latency distribution) and for the mix load generator alike; report.py puts in the table those the results have. 3proxy with -L among its options is given as many event loops as the proxy has CPUs, as envoy is given workers; BENCH_WORKERS sets that count for both whatever the CPUs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1fb4a313c5
commit
23b9619da1
3 files changed
+15
-8
No files matched your search
+3
-2
@@ -270,8 +270,9 @@ def latency(path, labels, splice, prefix=None):
|
||||
rule.append(":-:")
|
||||
head += [labels.get(p, p) for p in g]
|
||||
rule += ["---:"] * len(g)
|
||||
pcts = ["p50_ms", "p90_ms", "p99_ms"] if any(values(rs, "p90_ms") for rs in by.values()) \
|
||||
else ["p50_ms", "p99_ms"]
|
||||
# the percentiles the results have: older ones only p50 and p99
|
||||
pcts = [c for c in ("p50_ms", "p75_ms", "p90_ms", "p99_ms")
|
||||
if c in ("p50_ms", "p99_ms") or any(values(rs, c) for rs in by.values())]
|
||||
out = [f"| scenario, {' / '.join(c[:3] for c in pcts)} ms | " + " | ".join(head) + " |",
|
||||
"|---|" + "|".join(rule) + "|"]
|
||||
for s in scenarios:
|
||||
|
||||
Reference in new issue
Block a user