Performance
Build-time performance characteristics of the Component Compiler Host.
Build times
| Scenario | Typical time |
|---|---|
| Analyze 10 components | ~200ms |
| Analyze 50 components | ~800ms |
| Generate WC + React + Vue | ~1.5s |
| Full pipeline (50 components) | ~3s |
Output sizes
| Output | Minified + gzipped |
|---|---|
| Button WC | ~2.1 KB |
| Switch WC | ~2.4 KB |
| Dialog WC | ~4.8 KB |
| React wrapper (per component) | ~500 B |
| Vue wrapper (per component) | ~600 B |
| SVG icon | ~200-600 B |
Benchmarks
Run the benchmark suite:
bash
pnpm bench:component-hostSee temp/bench/component-host/report.md for the latest baseline.
CI runs benchmarks on every PR touching core/web-c/headless:
bash
pnpm bench:component-host:ciTips
- Use
excludein component globs to skip test files - Generate only the outputs you need
- Icon extraction from
node_modulesis cached between builds