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

Function parse_args

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

Source from the content-addressed store, hash-verified

77
78
79def parse_args() -> argparse.Namespace:
80 parser = argparse.ArgumentParser(
81 description="Generate markdown report and plots for Python benchmark suite"
82 )
83 parser.add_argument(
84 "--json-file",
85 default="results/benchmark_results.json",
86 help="Benchmark JSON file produced by benchmark.py",
87 )
88 parser.add_argument(
89 "--output-dir",
90 default="results/report",
91 help="Output directory for report and plots",
92 )
93 parser.add_argument(
94 "--plot-prefix",
95 default="",
96 help="Optional image path prefix used in markdown",
97 )
98 return parser.parse_args()
99
100
101def load_json(path: Path) -> Dict:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected