0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/benchmarks/AGENTS.md
Manuel Schiller 856cfcd05a
agents (#8258)
* agents

* update

* docs: require upstream fixes for dependency issues
2026-09-15 22:36:13 +02:00

1.6 KiB

Benchmarks

Read the relevant README before running benchmarks. Compare baseline and candidate with the same workload and production builds; add a focused case when existing scenarios miss the changed mechanism. Keep workloads and benchmark names stable for historical comparisons.

Changed behavior Guide Nx project
Standalone Router navigation/rendering CPU client-nav @benchmarks/client-nav
Start request/SSR CPU ssr @benchmarks/ssr
Client/server retention and allocations memory @benchmarks/memory-client, @benchmarks/memory-server

Use test:perf:<react|solid|vue> through Nx. Plain memory runs only smoke-test; memory metrics require CodSpeed. Client navigation benchmarks do not cover Start hydration or client server-function calls.

For bundle-size work, follow the full optimization skill required by the root guide. Full API fixtures are maintained manually: when public hooks/components change, update matching bundle-size/scenarios/*-full/src/routes/__root.tsx fixtures. Save baseline results separately because each run overwrites bundle-size/results/current.json; report final gzip deltas and explain remaining growth.