Commit 7a8461a
committed
benchmark: exercise test runner hook bodies
Update the hooks benchmark so registered hooks perform the same
anti-optimization assignment as test bodies instead of calling a noop.
This keeps the measured hook path from using an empty callback.
Links for more information on this actions:
nodejs#48931 (comment)
https://www.mail-archive.com/v8-users@googlegroups.com/msg05521.html
Signed-off-by: Luan Muniz <luan@luanmuniz.com.br>1 parent b9188c0 commit 7a8461a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments