Skip to content

Apache DataFusion SQL Query Engine

[MINOR]: Generate physical plan, instead of logical plan in the bench test (#9383)

Mustafa Akure1ca74e7c68e
diff --git a/datafusion/core/benches/sql_planner.rs b/datafusion/core/benches/sql_planner.rs
index 6f54054530..d800bcfe5b 100644
--- a/datafusion/core/benches/sql_planner.rs
+++ b/datafusion/core/benches/sql_planner.rs
@@ -247,6 +247,14 @@ fn criterion_benchmark(c: &mut Criterion) {
.collect::<Vec<_>>();
c.bench_function("physical_plan_tpch_all", |b| {
+ b.iter(|| {
+ for sql in &all_tpch_sql_queries {
+ physical_plan(&ctx, sql)
+ }
+ })
+ });
+
+ c.bench_function("logical_plan_tpch_all", |b| {
b.iter(|| {
for sql in &all_tpch_sql_queries {
logical_plan(&ctx, sql)