| 77 | } |
| 78 | |
| 79 | function printHelp() { |
| 80 | process.stdout.write( |
| 81 | [ |
| 82 | "Usage:", |
| 83 | " node scripts/bench-full-compare.mjs [options]", |
| 84 | "", |
| 85 | "Options:", |
| 86 | ` --baseline <path> Baseline results JSON (default: ${toRel(DEFAULT_BASELINE)})`, |
| 87 | ` --current <path> Current results JSON (default: ${toRel(DEFAULT_CURRENT)})`, |
| 88 | ` --report-json <path> JSON report output (default: ${toRel(DEFAULT_REPORT_JSON)})`, |
| 89 | ` --report-md <path> Markdown report output (default: ${toRel(DEFAULT_REPORT_MD)})`, |
| 90 | " --help, -h Show this help", |
| 91 | "", |
| 92 | ].join("\n"), |
| 93 | ); |
| 94 | } |
| 95 | |
| 96 | function readJson(path, label) { |
| 97 | let raw = ""; |