MCPcopy Create free account
hub / github.com/apache/fory / main

Function main

benchmarks/python/benchmark_report.py:366–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364
365
366def 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
393if __name__ == "__main__":

Callers 1

Calls 6

build_benchmark_matrixFunction · 0.85
parse_argsFunction · 0.70
load_jsonFunction · 0.70
generate_plotsFunction · 0.70
generate_markdown_reportFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected