Commit 44466c4
authored
chore(compiler): Add benchmark for parsing and validation when a type has many extensions (#1000)
Introduces a new benchmark for query parsing and validation when a type has many extensions.
We made an update in `[email protected]` to expose `.iter_origins()` for AST nodes, and we reimplemented `.extensions()` in terms of `.iter_origins()`. We were concerned that this may have caused a performance regression in parsing, but running this new benchmark against `main` with `1.28.0` as the base indicates no change in performance:
```
many_extensions time: [9.4118 ms 9.4420 ms 9.4842 ms]
change: [−0.3722% +1.0521% +2.1863%] (p = 0.11 > 0.05)
No change in performance detected.
Found 7 outliers among 100 measurements (7.00%)
3 (3.00%) high mild
4 (4.00%) high severe
```1 parent 5357b58 commit 44466c4
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
117 | 148 | | |
118 | 149 | | |
119 | 150 | | |
120 | 151 | | |
121 | 152 | | |
122 | 153 | | |
| 154 | + | |
123 | 155 | | |
124 | 156 | | |
0 commit comments