bench: add COMMANDS suite with EXPLODE metrics

Shares the benchmark harness between both suites, extracts the plan/batch/apply helpers out of the EXPLODE command arm, and adds the command_benchmarks target.
This commit is contained in:
Karim Jerbi committed 2026-09-28 06:58:47 +01:00
1 parent c623a01695
commit 7978d1eb2e
7 files changed
+629 -321

No files matched your search

+17 -5
View File
@@ -5,12 +5,12 @@ A standardized, statistical performance benchmarking suite measuring throughput,
## Quick Start
Run the full benchmark suite with native `--release` optimizations:
```powershell
```bash
cargo bench
```
Run a fast validation smoke test (~2 seconds):
```powershell
```bash
cargo bench --bench performance_benchmarks -- --quick
```
@@ -66,10 +66,22 @@ cargo bench --bench performance_benchmarks -- --quick
---
## Command Benchmarks
First benchmarked command: **EXPLODE** (metrics `explode_geometry`,
`explode_scene_apply`).
```bash
cargo bench --bench command_benchmarks -- --filter explode
cargo bench --bench command_benchmarks -- --quick
cargo bench --bench command_benchmarks -- --filter explode --output target/explode_metrics.json
cargo bench --bench command_benchmarks -- --filter explode --baseline target/explode_before.json
```
## Filtering Benchmarks
Filter execution by subsystem or name pattern:
```powershell
```bash
# Filter by UI
cargo bench --bench performance_benchmarks -- ui
@@ -85,12 +97,12 @@ cargo bench --bench performance_benchmarks -- hit_test
## Baseline Tracking & Regression Detection
### 1. Save Current Metrics as Baseline
```powershell
```bash
cargo bench --bench performance_benchmarks -- --output target/baseline_metrics.json
```
### 2. Compare PR / Branch Against Baseline
```powershell
```bash
cargo bench --bench performance_benchmarks -- --baseline target/baseline_metrics.json
```