Skip to content

Commit

Permalink
Speed up benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
twright committed Dec 18, 2024
1 parent 5f7a022 commit b3c645a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benches/simple_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ async fn monitor_outputs_typed_queuing(num_outputs: usize) {

fn from_elem(c: &mut Criterion) {
let sizes = vec![
1, 10, 100, 500, 1000, 2000, 5000, 10000, 25000, 100000, 1000000,
1, 10, 100, 500, 1000, 2000, 5000, 10000, 25000, // 100000,
// 1000000,
];

let tokio_rt = tokio::runtime::Builder::new_current_thread()
Expand All @@ -136,7 +137,7 @@ fn from_elem(c: &mut Criterion) {
let mut group = c.benchmark_group("simple_add");
group.sampling_mode(SamplingMode::Flat);
group.sample_size(10);
group.measurement_time(std::time::Duration::from_secs(30));
group.measurement_time(std::time::Duration::from_secs(5));

for size in sizes {
group.bench_with_input(
Expand Down

0 comments on commit b3c645a

Please sign in to comment.