matthewmturner commented on code in PR #8665:
URL: https://github.com/apache/arrow-datafusion/pull/8665#discussion_r1437330347
##########
datafusion/core/benches/sql_planner.rs:
##########
@@ -115,6 +163,16 @@ fn criterion_benchmark(c: &mut Criterion) {
)
})
});
+
+ let q1_sql =
std::fs::read_to_string("../../benchmarks/queries/q1.sql").unwrap();
+ c.bench_function("physical_plan_tpch_q1", |b| {
+ b.iter(|| physical_plan(&ctx, &q1_sql))
+ });
+
+ let q12_sql =
std::fs::read_to_string("../../benchmarks/queries/q12.sql").unwrap();
+ c.bench_function("physical_plan_tpch_q12", |b| {
+ b.iter(|| physical_plan(&ctx, &q12_sql))
+ });
Review Comment:
it was my understanding the intent from #8638 was to have all planning
benchmarks in a single place and less to be able to isolate benchmark per
source (tpch / clickbench / etc). that being said, i can see value in that if
we wanted to take our plan benchmarks a step further and perhaps compare to
other engines.
i dont have a strong opinion either way - happy to go with the consensus
here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]