()
| 364 | |
| 365 | |
| 366 | def main() -> int: |
| 367 | args = parse_args() |
| 368 | |
| 369 | json_file = Path(args.json_file) |
| 370 | output_dir = Path(args.output_dir) |
| 371 | output_dir.mkdir(parents=True, exist_ok=True) |
| 372 | |
| 373 | raw = load_json(json_file) |
| 374 | benchmarks = raw.get("benchmarks", []) |
| 375 | sizes = raw.get("sizes", {}) |
| 376 | |
| 377 | data = build_benchmark_matrix(benchmarks) |
| 378 | generate_plots(data, output_dir) |
| 379 | |
| 380 | report_path = generate_markdown_report( |
| 381 | raw, |
| 382 | data, |
| 383 | sizes, |
| 384 | output_dir, |
| 385 | args.plot_prefix, |
| 386 | ) |
| 387 | |
| 388 | print(f"Plots saved in: {output_dir}") |
| 389 | print(f"Markdown report generated at: {report_path}") |
| 390 | return 0 |
| 391 | |
| 392 | |
| 393 | if __name__ == "__main__": |
no test coverage detected