Commit f643b49
authored
Add semantic analysis benchmarks (#10373)
* Add semantic analysis benchmarks
- Add divan benchmarks for compiler semantic analysis phase
(internal/compiler/benches/semantic_analysis.rs)
- Add custom allocator to track allocations in the benchmark.
- Add benches for individual phases of compilation and a proc-macro simulation mode.
Benchmarks cover:
- Lexing and parsing performance
- Full compilation with various stress scenarios
- Specific hotspots: many children, properties, exports,
states, nested components, deep expressions, binding chains1 parent 8accfc2 commit f643b49
File tree
3 files changed
+543
-0
lines changed- internal/compiler
- benches
3 files changed
+543
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
0 commit comments