(outputPath: string, entries: BenchmarkEntry[])
| 800 | } |
| 801 | |
| 802 | function writeOutput(outputPath: string, entries: BenchmarkEntry[]): void { |
| 803 | mkdirSync(path.dirname(outputPath), { recursive: true }); |
| 804 | writeFileSync(outputPath, JSON.stringify(entries, null, 2)); |
| 805 | } |
| 806 | |
| 807 | if (import.meta.main) { |
| 808 | await main(); |