This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new ef9bc90bb9 Minor: add a sql_planner benchmarks to reflecte select many
field on a huge table (#9536)
ef9bc90bb9 is described below
commit ef9bc90bb977da2a5da10d542d217dee1a91ec63
Author: Huaijin <[email protected]>
AuthorDate: Tue Mar 12 17:20:56 2024 +0800
Minor: add a sql_planner benchmarks to reflecte select many field on a huge
table (#9536)
---
datafusion/core/benches/sql_planner.rs | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/datafusion/core/benches/sql_planner.rs
b/datafusion/core/benches/sql_planner.rs
index d800bcfe5b..3f7d66f5cc 100644
--- a/datafusion/core/benches/sql_planner.rs
+++ b/datafusion/core/benches/sql_planner.rs
@@ -166,6 +166,8 @@ fn create_context() -> SessionContext {
.unwrap();
ctx.register_table("t700", create_table_provider("c", 700))
.unwrap();
+ ctx.register_table("t1000", create_table_provider("d", 1000))
+ .unwrap();
let tpch_schemas = create_tpch_schemas();
tpch_schemas.iter().for_each(|(name, schema)| {
@@ -194,6 +196,16 @@ fn criterion_benchmark(c: &mut Criterion) {
b.iter(|| physical_plan(&ctx, "SELECT c1 FROM t700"))
});
+ // Test simplest
+ c.bench_function("logical_select_all_from_1000", |b| {
+ b.iter(|| logical_plan(&ctx, "SELECT * FROM t1000"))
+ });
+
+ // Test simplest
+ c.bench_function("physical_select_all_from_1000", |b| {
+ b.iter(|| physical_plan(&ctx, "SELECT * FROM t1000"))
+ });
+
c.bench_function("logical_trivial_join_low_numbered_columns", |b| {
b.iter(|| {
logical_plan(