()
| 321 | |
| 322 | |
| 323 | def main() -> None: |
| 324 | args = parse_args() |
| 325 | output_dir = Path(args.output_dir) |
| 326 | output_dir.mkdir(parents=True, exist_ok=True) |
| 327 | results = collect_results(load_json(args.json_file)) |
| 328 | output_path = render_plot(results, str(output_dir)) |
| 329 | section = build_xlang_section(results, os.path.basename(output_path)) |
| 330 | report_path = write_local_readme(output_dir, section) |
| 331 | print(f"Generated {report_path}") |
| 332 | print(f"Generated {output_path}") |
| 333 | if args.docs_output_dir is not None: |
| 334 | docs_output_dir = Path(args.docs_output_dir) |
| 335 | docs_output_dir.mkdir(parents=True, exist_ok=True) |
| 336 | docs_output_path = docs_output_dir / "throughput.png" |
| 337 | shutil.copy2(output_path, docs_output_path) |
| 338 | print(f"Copied {docs_output_path}") |
| 339 | docs_readme = update_docs_readme(docs_output_dir, section) |
| 340 | print(f"Updated {docs_readme}") |
| 341 | |
| 342 | |
| 343 | if __name__ == "__main__": |
no test coverage detected