Repository navigation
Commit 329b067
committed
fix(core): bind the native addon's symbols at load
With lazy binding, the first `stopBenchmark()` of a process resolved
`instrument_hooks_stop_benchmark` through the dynamic linker while the
benchmark was still measured. Link the addon with `-z now` so symbols
resolve when it loads.
Under callgrind this removes 2,339 Ir from the first benchmark of
examples/with-vitest-v5, and brings `switch 1` of
examples/with-typescript-simple-esm to 4,625 Ir.1 parent e962378 commit 329b067
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments