Skip to content

Commit

Permalink
increase the measurement_time of benches of serde (#941)
Browse files Browse the repository at this point in the history
Closes #940
  • Loading branch information
doki23 authored Sep 27, 2024
1 parent 69fd16c commit d22aa29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion vortex-serde/benches/ipc_array_reader_take.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![allow(clippy::unwrap_used)]
use std::sync::Arc;
use std::time::Duration;

use criterion::async_executor::FuturesExecutor;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
Expand Down Expand Up @@ -62,5 +63,9 @@ fn ipc_array_reader_take(c: &mut Criterion) {
});
}

criterion_group!(benches, ipc_array_reader_take);
criterion_group!(
name = benches;
config = Criterion::default().measurement_time(Duration::from_secs(10));
targets = ipc_array_reader_take
);
criterion_main!(benches);
6 changes: 5 additions & 1 deletion vortex-serde/benches/ipc_take.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![allow(clippy::unwrap_used)]
use std::sync::Arc;
use std::time::Duration;

use arrow::ipc::reader::StreamReader as ArrowStreamReader;
use arrow_array::{Array, Int32Array, RecordBatch};
Expand Down Expand Up @@ -85,5 +86,8 @@ fn ipc_take(c: &mut Criterion) {
});
}

criterion_group!(benches, ipc_take);
criterion_group!(
name = benches;
config = Criterion::default().measurement_time(Duration::from_secs(10));
targets = ipc_take);
criterion_main!(benches);

0 comments on commit d22aa29

Please sign in to comment.