Restructure solution layout by module

This commit is contained in:
master
2025-10-28 15:10:40 +02:00
parent 95daa159c4
commit d870da18ce
4103 changed files with 192899 additions and 187024 deletions

View File

@@ -0,0 +1,24 @@
# Policy Engine Bench
Synthetic workload that measures end-to-end policy evaluation throughput against large advisory snapshots.
## Scenarios
`config.json` defines the default scenario (`policy_eval_baseline`) which generates **100000 components** with **1000000 findings** derived from deterministic seeds. The harness measures:
- Latency (mean/p95/max milliseconds)
- Throughput (findings per second)
- Managed heap allocations (megabytes)
## Running locally
```bash
dotnet run \
--project src/Bench/StellaOps.Bench/PolicyEngine/StellaOps.Bench.PolicyEngine/StellaOps.Bench.PolicyEngine.csproj \
-- \
--csv out/policy-bench.csv \
--json out/policy-bench.json \
--prometheus out/policy-bench.prom
```
The run exits non-zero if latency exceeds configured thresholds, throughput falls below the configured floor, or allocations surpass the budget. Baselines live in `baseline.csv` and can be regenerated whenever new steady-state metrics are established.