Commit 581cd90
committed
test(compiler): add signal-based bundling benchmark for safe navigation optimization
Adds packages/core/test/bundling/safe_nav — an Angular Signals admin dashboard
with 8 components and ~80 nullable signal bindings (user()?.name, order()?.id,
computed()?.revenue, etc.). Serves as a reproducible before/after benchmark for
the optimizeTemporaries and self-assignment-elimination compiler phases.
Signal reads are function calls that bundlers cannot inline, so the savings from
fewer let declarations appear in the final esbuild output. Measured savings on
this benchmark: 1,147 bytes raw / 425 bytes gzip (0.76% gzip reduction).1 parent c4d4105 commit 581cd90
2 files changed
Lines changed: 410 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments