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

Function default_benchmark_dir

benchmarks/src/benchmark_runner/mod.rs:97–104  ·  view source on GitHub ↗

Resolves the SQL benchmark root from either the repository root or the benchmarks crate manifest directory.

()

Source from the content-addressed store, hash-verified

95/// Resolves the SQL benchmark root from either the repository root or the
96/// benchmarks crate manifest directory.
97fn default_benchmark_dir() -> PathBuf {
98 let repo_root_path = PathBuf::from("benchmarks/sql_benchmarks");
99 if repo_root_path.exists() {
100 repo_root_path
101 } else {
102 PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("sql_benchmarks")
103 }
104}

Callers 1

run_cliFunction · 0.85

Calls 2

existsMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…