Files
deepseek-harness/scripts/render-benchmark-report.ts
T
imccyu 0394e32ce6 ci: run the benchmark phases in parallel on the shared build and render one report
node-24-bench becomes a two-entry matrix that restores the node-24-build
output, bundles only the benchmark workers, and runs one suite phase per idle
runner: phase first holds the corpus cases and phase last the serial files
listed in SERIAL_BENCH_FILES. Each phase uploads its results.jsonl and the
measuring environment; node-24-bench-report renders one benchmark-report on a
small runner under Node type stripping and stays out of all-checks-passed.
2026-11-20 15:23:15 +08:00

15 lines
818 B
TypeScript

/**
* Render one scaled benchmark report from the report directories of benchmark phases that ran on separate
* runners. Usage: `node scripts/render-benchmark-report.ts <output-directory> <phase-directory>...`.
* Runs under plain Node type stripping, so the CI report job needs no dependency install.
*/
import { resolve } from 'node:path'
import { renderMergedReport } from '../benchmarks/support/scaling-report.ts'
const [output, ...inputs] = process.argv.slice(2)
if (output === undefined || inputs.length === 0) {
throw new Error('usage: node scripts/render-benchmark-report.ts <output-directory> <phase-directory>...')
}
for (const warning of renderMergedReport(resolve(output), inputs.map(input => resolve(input)))) console.warn(warning)
console.log(`benchmark report: ${resolve(output, 'report.html')}`)