Skip to content

Apache DataFusion SQL Query Engine

chore: downsize `sql_planner_extended` `logical_plan_optimize` sample size to 5 (#23659)

Jeffrey Vo1734d4beb444
diff --git a/datafusion/core/benches/sql_planner_extended.rs b/datafusion/core/benches/sql_planner_extended.rs
index b016d758f3..5bea9860c4 100644
--- a/datafusion/core/benches/sql_planner_extended.rs
+++ b/datafusion/core/benches/sql_planner_extended.rs
@@ -386,12 +386,16 @@ fn criterion_benchmark(c: &mut Criterion) {
let df = build_test_data_frame(&baseline_ctx, &rt);
let case_heavy_left_join_df = build_case_heavy_left_join_df(&case_heavy_ctx, &rt);
- c.bench_function("logical_plan_optimize", |b| {
+ // really slow :(
+ let mut group = c.benchmark_group("sample_size_5");
+ group.sample_size(5);
+ group.bench_function("logical_plan_optimize", |b| {
b.iter(|| {
let df_clone = df.clone();
black_box(rt.block_on(async { df_clone.into_optimized_plan().unwrap() }));
})
});
+ group.finish();
c.bench_function("logical_plan_optimize_hotspot_case_heavy_left_join", |b| {
b.iter(|| {