This directory contains Vitest benchmarks that measure the compilation performance of the Axint compiler across all 4 compilation surfaces.
- Intent — Compiling App Intent definitions with parameter validation
- View — Compiling SwiftUI view definitions with state and conditional rendering
- Widget — Compiling WidgetKit widget definitions with timeline entries
- App — Compiling SwiftUI App definitions with scenes and storage
Each benchmark compiles a representative sample fixture 100 times and reports throughput metrics.
Run benchmarks locally:
npm run benchWith verbose output:
npm run bench -- --reporter=verboseBenchmarks run automatically in CI and are reported on pull requests.
Results appear in CI logs and can be viewed after each run. Benchmarks help catch unexpected performance regressions in codegen and validation.