dashboard: state the decode step as a percentage of the best at its own concurrency

The drift line carried a percent-of-best suffix that left with the drift
verdict on 10-18. Restored as a raw ratio, keyed by concurrency: a c8 step
against the fastest c8 step this process has done, never against the
single-stream floor (that cross-read is what made the old line lie about a
batch arriving). No threshold, no colour.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI

(cherry picked from commit 4fe6ff1c838d67b642cc12782ce6a441368c3d76)
This commit is contained in:
Memoria (Noblistic) committed 2026-10-19 17:35:05 +00:00
1 parent 5dfa61372a
commit 52a646431a
1 file changed
+11
+11
View File
@@ -1712,6 +1712,7 @@ let c1hist = [];
const C1CAP = 7200; /* an hour at 2 polls/s of single-stream samples */
let bestEver = 0; /* the best engine floor ever seen here, across restarts */
try { bestEver = parseFloat(localStorage.getItem("radiance.c1best")) || 0; } catch (e) {}
const bestAt = {}; /* fastest step seen at each concurrency, this process */
function update(s, dt) {
@@ -1753,6 +1754,16 @@ function update(s, dt) {
det = "best " + floorMs.toFixed(2) + "ms";
if (engRecentMs > 0) det += " · recent " + engRecentMs.toFixed(2) + "ms";
}
/* THE STEP AS A PERCENTAGE OF THE FASTEST THIS PROCESS HAS DONE AT THIS CONCURRENCY. Keyed by
* concurrency on purpose: a c8 step read against the single-stream floor would report the batch
* arriving as a slowdown -- the mistake that took the old drift line out. Raw ratio, no
* threshold, no colour: the number is the statement. */
if (s.running > 0 && lastStepMs != null) {
const k = s.running;
if (!(k in bestAt) || lastStepMs < bestAt[k]) bestAt[k] = lastStepMs;
const ref = k === 1 && floorMs > 0 ? floorMs : bestAt[k];
if (ref > 0) det += " · now " + Math.round(100 * lastStepMs / ref) + "% of best" + (k === 1 ? "" : "@c" + k);
}
$("m-stepdet").textContent = det;
setMetric("decode", s.decode_tps, tps(s.decode_tps));