Log inGet started
World

Frame Lab: Repeatable Performance Benchmarks and Game Charts

Branchmain
Branchesmain
Commite1ade4ce7c

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); summarize hitch counts are strict > 33/50/100 ms; foldRepeats medians and relativeSpread; steadiness; perMinute bucketing.
  • paths: every kind in Paths.KINDS validates from a minimal definition and poses finitely; pose is 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 set toggle); fingerprint follows seed, graphics, duration; views without a path becomes a views path.
  • budgets: the seven builtin budgets with memoryMB; judge pass / fail / unmeasured (pass = nil); define adds and replaces.
  • compare: within noise reads "no change"; p95 50% slower reads "worse"; mismatched drawn size / quality / build type / benchmark refused naming each; force compares anyway.
  • store: Store.row shape; 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.build from hand-made windows: folded totals and spread, top costs, kit cost, budgets, and unavailable readings left nil with their reason in unavailable.
  • 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()