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> |
||
|---|---|---|
| .. | ||
| baseline | ||
| benchmark_moving_entities.py | ||
| benchmark_suite.py | ||
| entity_scale_benchmark.py | ||
| layer_performance_test.py | ||
| stress_test_suite.py | ||
| tcod_fov_isolated.py | ||
| tcod_scale_test.py | ||