diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 22:59:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 23:51:42 -0300 |
| commit | e0afc6d3fd96aaf0a887decdef39a7144503c7fd (patch) | |
| tree | 77cd5c292ceda20aaeb9600cebcb4e746d549705 | |
| parent | 76ac996933d356b44458afc0aee76c758aeb4b26 (diff) | |
| download | pardes-e0afc6d3fd96aaf0a887decdef39a7144503c7fd.tar.gz pardes-e0afc6d3fd96aaf0a887decdef39a7144503c7fd.zip | |
soak: instant counts an input at once when it shows no later than the local session's own p99 for its class as well as half a round trip: a tty's wheel glides, its first row two frames on in a local session too (36 ms), which the 33 ms floor at 30 ms called waiting
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
| -rw-r--r-- | test/soak.py | 12 |
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)) |
