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

Function main

benchmarks/java/benchmark_report.py:323–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322
323def 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
343if __name__ == "__main__":

Callers 1

Calls 7

build_xlang_sectionFunction · 0.85
write_local_readmeFunction · 0.85
update_docs_readmeFunction · 0.85
parse_argsFunction · 0.70
collect_resultsFunction · 0.70
load_jsonFunction · 0.70
render_plotFunction · 0.70

Tested by

no test coverage detected