Skip to content

Commit

Permalink
Migrate random benchmark to invoke_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Nov 2, 2024
1 parent b15ff5e commit ef232b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/functions/benches/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("random_1M_rows_batch_8192", |b| {
b.iter(|| {
for _ in 0..iterations {
black_box(random_func.invoke_no_args(8192).unwrap());
black_box(random_func.invoke_batch(&[], 8192).unwrap());
}
})
});
Expand All @@ -39,7 +39,7 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("random_1M_rows_batch_128", |b| {
b.iter(|| {
for _ in 0..iterations_128 {
black_box(random_func.invoke_no_args(128).unwrap());
black_box(random_func.invoke_batch(&[], 128).unwrap());
}
})
});
Expand Down

0 comments on commit ef232b5

Please sign in to comment.