summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/soak.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/soak.py b/test/soak.py
index d71549b7..401cb84e 100644
--- a/test/soak.py
+++ b/test/soak.py
@@ -22,9 +22,9 @@ wheel, select, type into the Panes picker) and client kind, 25 inputs each in
one client a kind, against a local session's own frontend measured first in the
same run. Its columns: `at once`, the share applied at once (none of them
stopped at a host call, by the replica's own trace, and each shown sooner than
-half a round trip); p50/p99 keystroke to present; the local session's p99;
-`none`, inputs that showed nothing in 2 s; for type_shell the keys whose echo
-was predicted. Breaches: a local-only class under 99% at once, or its p99 more
+half a round trip or the local session's p99); p50/p99 keystroke to present;
+the local session's p99; `none`, inputs that showed nothing in 2 s; for
+type_shell the keys whose echo was predicted. Breaches: a local-only class under 99% at once, or its p99 more
than two frames over the local one; shell echo predicted under 95%; more than
one input showing nothing. The soak's own breach for blink: visible rollbacks at
1 a minute or more.
@@ -1728,8 +1728,10 @@ def instant(args):
# At once: no stop, and shown sooner than a round trip could
# bring it (an input queued behind a stopped one says nothing).
# (Half a round trip, or two frames: a window's software present
- # alone takes up to a frame or so.)
- quick = sum(1 for x in lat if x < max(rtt / 2, 2000 / 60)) if rtt else len(lat)
+ # alone takes up to a frame or so; or the local session's own p99:
+ # a tty's wheel glides, its first row two frames on there too.)
+ floor = max(rtt / 2, 2000 / 60, pct(base.get((kind, cls[0]), []), 99) or 0)
+ quick = sum(1 for x in lat if x < floor) if rtt else len(lat)
frac = min(1 - stops / events, quick / INSTANT_N)
results.append((run.cell, kind, cls, frac, stops, quick, pct(lat, 50), pct(lat, 99), missed,
pct(base.get((kind, cls[0]), []), 99), died, echo))