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

Function parse_args

benchmarks/compile_profile.py:64–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def parse_args() -> argparse.Namespace:
65 parser = argparse.ArgumentParser(description=__doc__)
66 parser.add_argument(
67 "--profiles",
68 nargs="+",
69 default=list(PROFILE_TARGET_DIR.keys()),
70 help=(
71 "Cargo profiles to test "
72 "(default: dev release ci ci-optimized release-nonlto profiling)"
73 ),
74 )
75 parser.add_argument(
76 "--data",
77 type=Path,
78 default=DEFAULT_DATA_DIR,
79 help="Path to TPCH dataset (default: benchmarks/data/tpch_sf1)",
80 )
81 return parser.parse_args()
82
83
84def timed_run(command: Iterable[str]) -> float:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…