Skip to content

Commit

Permalink
[MINOR]: Generate physical plan, instead of logical plan in the bench…
Browse files Browse the repository at this point in the history
… test (apache#9383)

* initial commit

* Add logical plan all benchmark
  • Loading branch information
mustafasrepo authored Feb 29, 2024
1 parent ca37ce3 commit e1ca74e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions datafusion/core/benches/sql_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e1ca74e

Please sign in to comment.