Merge #106: routing reference test and save-file benchmark

This commit is contained in:
Frederic Jung 2026-10-26 08:34:19 +01:00
commit 2366bb9a8f
No known key found for this signature in database
5 changed files with 132 additions and 1 deletions

View file

@ -160,3 +160,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`.