INNER CODE UNIT · TypeScript
initResultsFile
jeffijoe/awilix · benchmarks/helpers.ts:106
export function initResultsFile(): void {
const p = getResultsPath()
const header = `# Benchmark Results\n\n**Timestamp:** ${new Date().toISOString()}\n**Node:** ${process.version}\n**Platform:** ${process.platform} ${process.arch}\n`
fs.writeFileSync(p, header)
console.log(`Results file: ${path.basename(p)}`)
}