Run benchmark suites for iris-ecs and interpret results.
Steps
- •Run
pnpm --filter iris-benchmark bench $ARGUMENTSfrom the repo root- •If no arguments, runs all suites in throughput mode
- •Suite names:
Entity,Component,Query - •Add
--memoryfor memory profiling mode (harness handles--expose-gc)
- •Read the reference numbers from
apps/benchmark/README.md(look for the results tables) - •Present results in a comparison table: measured value vs reference value
- •Flag any regressions:
- •>5% drop in ops/sec -> performance regression
- •>5% increase in alloc/op -> memory regression
- •Note: results are machine-sensitive -- only compare numbers from the same machine and similar conditions
Context
Benchmarks use realistic, controllably-random archetype fragmentation with 14 entity templates, power-law weights, and seeded RNG for deterministic reproducibility. See apps/benchmark/CLAUDE.md for the full philosophy and apps/benchmark/README.md for detailed methodology.