Frame Lab: Repeatable Performance Benchmarks and Game Charts
README.md
benchKitTests
Test suite for the benchKit package.
What it checks
- metrics: percentile interpolation on known lists; 1% / 0.1% low fps (including a list under 100 frames, which uses one frame);
summarizehitch counts are strict>33/50/100 ms;foldRepeatsmedians andrelativeSpread;steadiness;perMinutebucketing. - paths: every kind in
Paths.KINDSvalidates from a minimal definition and poses finitely;poseis pure; orbit at t=0 and t=duration/4; walk speed (1.4 m in 1 s), ping-pong at the end with no jump; views switching at half time; path fingerprints stable/unstable as they should be; swapping kind over the same points. - spec: defaults (repeats 3, settle timeout 60, hold 2 s); refusals naming the field (name, segments, renderScale, unknown
settoggle); fingerprint follows seed, graphics, duration;viewswithout a path becomes a views path. - budgets: the seven builtin budgets with
memoryMB; judge pass / fail / unmeasured (pass = nil);defineadds and replaces. - compare: within noise reads "no change"; p95 50% slower reads "worse"; mismatched drawn size / quality / build type / benchmark refused naming each;
forcecompares anyway. - store:
Store.rowshape; save / list / open / remove round trip on the account shelf (or this machine's when the session has no account; the file is deleted afterwards). - report:
Report.buildfrom hand-made windows: folded totals and spread, top costs, kit cost, budgets, and unavailable readings left nil with their reason inunavailable. - bench run: one real two-repeat, one-second orbit run (
save = false), checking the report format, repeats, drawn size and kit cost. It stands down (skipped) on a client that draws no frames.
What it leaves out
The settings sweep, sustained mode, the recorder, the cards/looks UI, Store.promote (writes world source), the probe's individual engine readings and the shell toolbox. The define test leaves a __benchKitTestBudget budget registered in the loaded budgets module until it reloads.
Run
return asset.resolve("benchKitTests", "testSuite"):run()