2010YOUY01 opened a new pull request, #27766:
URL: https://github.com/apache/datafusion/pull/27766

   ## Which issue does this PR close?
   
   Addresses the benchmark request in [this review comment on 
#27746](https://github.com/apache/datafusion/pull/27746#discussion_r4698334188).
   
   ## Rationale for this change
   
   Add a build-heavy query to `hj` benchmark, which is not covered before.
   
   ## What changes are included in this PR?
   
   1. Add optional setup SQL to the legacy `dfbench hj` runner. Setup runs once 
before timing, keeping build-key generation outside the measured query.
   2. Add Q29 to `hj` benchmark
   
   The setup hook is a temporary hack to iterate faster on #27746. Long term, 
HJ should move to `benchmark_runner`, which already supports `load` and `init`. 
That migration is tracked in 
[#24311](https://github.com/apache/datafusion/issues/24311).
   
   Here it shows that asof join uses new `benchmark_runner`, while `hj` is on 
legacy `dfbench` runner
   
https://github.com/apache/datafusion/blob/4c7a78b0ffb157fd104df327910caaef26cf361b/benchmarks/bench.sh#L1782-L1796
   
   ## What is the testing strategy for this PR?
   
   Tested locally:
   ```sh
   yongting@Yongtings-MacBook-Pro-2 ~/C/datafusion (main *=)> 
CARGO_COMMAND="cargo run --profile release-nonlto" ./benchmarks/bench.sh run hj
   
   ...
   
   Query 29 iteration 0 returned 1 rows in 43.312791ms
   Query 29 iteration 1 returned 1 rows in 21.864583ms
   Query 29 iteration 2 returned 1 rows in 21.207541ms
   Query 29 iteration 3 returned 1 rows in 22.798875ms
   Query 29 iteration 4 returned 1 rows in 22.740042ms
   ```
   
   
   ## Are there any user-facing changes?
   
   No


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to