comphead commented on code in PR #5658:
URL: https://github.com/apache/arrow-datafusion/pull/5658#discussion_r1143779317
##########
benchmarks/src/bin/h2o.rs:
##########
@@ -113,13 +118,16 @@ async fn group_by(opt: &GroupBy) -> Result<()> {
let start = Instant::now();
let df = ctx.sql(sql).await?;
let batches = df.collect().await?;
- let elapsed = start.elapsed().as_millis();
-
+ let elapsed = start.elapsed().as_secs_f64() * 1000.0;
+ let numrows = batches.iter().map(|b| b.num_rows()).sum::<usize>();
Review Comment:
Another thing I'm thinking is can it be calculating num rows triggers some
system cache and benchmark will run faster, alhough its unexpected
--
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]