Benchmark Lab Runner Shell
A self-contained in-page harness that loads WarGrid in an isolated container, runs one benchmark scenario on demand and shows raw timings as they arrive. It is the foundation every other lab example builds on, so results are produced the same way on the docs site, locally and in CI.
Planned. This page shows the specification from issue #208. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Standard 10K x 20 scenario selected, operation 'initial render', 10 iterations, idle state with Run button enabled.
Expected behavior
Pressing Run disables configuration controls, mounts a fresh grid per iteration, records the time from mount call to first committed paint and appends a row per iteration. Abort stops after the current iteration and marks the run as incomplete.
Planned API surface
BenchRunnerrunner.run(scenarioId)runner.abort()onIterationCompleteonRunCompleteonRunErrorscenarioRegistryAcceptance criteria
- Each iteration mounts the grid into a newly created container and fully destroys it afterwards (pending)
- A run of N iterations produces exactly N result rows unless aborted (pending)
- Aborted runs are labelled 'incomplete' and are excluded from summary statistics (pending)
- No network request other than loading static harness assets is made during a run (pending)
- The runner works with the grid loaded from the same published package version shown on the page (pending)