McRogueFace/tests/benchmarks
John McCardle fcc0376f31 feat: Add entity scale benchmark for #115 and #117
Benchmark suite measuring entity performance at scale:
- B1: Entity creation (measures allocation overhead)
- B2: Full iteration (measures cache locality)
- B3: Single range query (measures O(n) scan cost)
- B4: N×N visibility (the "what can everyone see" problem)
- B5: Movement churn (baseline for spatial index overhead)

Key findings at 2,000 entities on 100×100 grid:
- Creation: 75k entities/sec
- Range query: 0.05ms (O(n) - checks all entities)
- N×N visibility: 128ms total (O(n²))
- EntityCollection iteration 60× slower than direct iteration

Addresses #115, addresses #117

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-27 23:24:31 -05:00
..
baseline Tests for cached rendering performance 2025-11-28 23:28:13 -05:00
benchmark_moving_entities.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
benchmark_suite.py feat: Add dirty flag propagation to all UIDrawables and expand metrics API (#144, #104) 2025-11-28 15:44:09 -05:00
entity_scale_benchmark.py feat: Add entity scale benchmark for #115 and #117 2025-12-27 23:24:31 -05:00
layer_performance_test.py feat: Implement chunk-based Grid rendering for large grids (closes #123) 2025-11-28 22:33:16 -05:00
stress_test_suite.py Tests for cached rendering performance 2025-11-28 23:28:13 -05:00
tcod_fov_isolated.py fix: Remove O(n²) list-building from compute_fov() (closes #146) 2025-11-28 21:26:32 -05:00
tcod_scale_test.py Tests for cached rendering performance 2025-11-28 23:28:13 -05:00