Add routing reference regression and exported-save benchmark

This commit is contained in:
LookedPath 2026-10-26 06:11:12 +00:00
parent 308c3f7045
commit ffb8c50895
6 changed files with 134 additions and 1 deletions

View file

@ -154,3 +154,19 @@ Issues and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
## License
[MIT](LICENSE) © 2026 Frederic Jung
## Benchmark an exported save
To measure simulation updates, actions, the closed mobile Networks sheet and
opening Connections with your own save:
```bash
node scripts/benchmark-performance.js /path/to/save.json
git show origin/main:site/index.html > /tmp/tubes-baseline.html
node scripts/benchmark-performance.js /path/to/save.json /tmp/tubes-baseline.html
```
The optional baseline compares timings and asserts that the complete serialized
simulation output matches. Saves may be plain state or exports wrapped in `S`.
These are headless JavaScript/DOM timings, not phone interaction or browser
painting measurements. For the seeded network benchmark used by CI, use `npm run perf`.