(conf)
| 26 | const bench = common.createBenchmark(main, configs, options); |
| 27 | |
| 28 | async function main(conf) { |
| 29 | tmpdir.refresh(); |
| 30 | |
| 31 | fs.mkdirSync(benchmarkDirectory, { recursive: true }); |
| 32 | fs.writeFileSync(new URL('./relative-existing.js', benchmarkDirectory), '\n'); |
| 33 | |
| 34 | bench.start(); |
| 35 | |
| 36 | for (let i = 0; i < conf.n; i++) { |
| 37 | try { |
| 38 | await import(new URL(conf.specifier.replace('{i}', i), benchmarkDirectory)); |
| 39 | } catch { /* empty */ } |
| 40 | } |
| 41 | |
| 42 | bench.end(conf.n); |
| 43 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…