Archived
dashboard: cap the decode-step percentage at 100%
`now` is a ~500 ms poll mean; `best` is a 32-step window mean. A fast stretch shorter than a window can therefore read faster than the recorded floor, which the ratio printed as >100% -- "105% of best", which is a contradiction: if it beat the best, the best should have moved. The engine only ratchets the floor on a completed 32-step window, so a sub-window blip is not a new record. Cap the figure at 100: a live window at or above the floor reads "100% of best" (at your best), and anything slower reads a percentage of it. The "best X ms" figure is unchanged. Operator-directed 2026-10-18. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit e083a2d606c2194539bd0640916fb0ae0852962e)
This commit is contained in:
1 parent
46c7dc26be
commit
0a222c6723
1 file changed
+5
-2
@@ -1757,12 +1757,15 @@ function update(s, dt) {
|
||||
/* THE STEP AS A PERCENTAGE OF THE FASTEST THIS PROCESS HAS DONE AT THIS CONCURRENCY: 100% is the fastest step, anything slower a percentage of it. 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. */
|
||||
* threshold, no colour: the number is the statement. Capped at 100: `now` is a ~500 ms poll mean while
|
||||
* `best` is a 32-step window mean, so a fast stretch shorter than a window can read faster than the
|
||||
* recorded floor. That is "at your best", not a new record -- the engine only ratchets the floor on a
|
||||
* completed 32-step window, and a sub-window blip is not one. */
|
||||
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 * ref / lastStepMs) + "% of best" + (k === 1 ? "" : "@c" + k);
|
||||
if (ref > 0) det += " · now " + Math.min(100, Math.round(100 * ref / lastStepMs)) + "% of best" + (k === 1 ? "" : "@c" + k);
|
||||
}
|
||||
$("m-stepdet").textContent = det;
|
||||
|
||||
|
||||
Reference in new issue
Block a user