({ n, engine, type })
| 81 | }); |
| 82 | |
| 83 | function main({ n, engine, type }) { |
| 84 | const bindings = engine === 'v8' ? v8 : napi; |
| 85 | const methodName = 'callWith' + type; |
| 86 | const fn = bindings[methodName]; |
| 87 | |
| 88 | if (fn) { |
| 89 | const args = generateArgs(type); |
| 90 | |
| 91 | bench.start(); |
| 92 | for (let i = 0; i < n; i++) { |
| 93 | fn.apply(null, args); |
| 94 | } |
| 95 | bench.end(n); |
| 96 | } |
| 97 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…