Repository navigation
Commit e990319
committed
test(benchmark): measure the parse a build asks for, not one nobody asks for
The `mode 'parse'` row says it passes the same options as `parse()` and then
asks for locations, which `parse()` never does — it derives line and column
from node offsets. That went unnoticed while the parser dropped locations on
the lazy path: asking cost nothing because nothing was tracked. Now that a
caller asking for locations gets them, the row measures 8.9 MB of location
objects (451 ms to 2131 ms here) that no build pays for.1 parent aada3d9 commit e990319
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments