diff --git a/examples/barbershop.rs b/examples/barbershop.rs index 15354516e6e1aa4f16e57b98f14208f8a58d551a..20e1d0399f07a153e541e30533797303253ca9d5 100644 --- a/examples/barbershop.rs +++ b/examples/barbershop.rs @@ -106,7 +106,7 @@ mod bench { PlotConfiguration::default() .summary_scale(AxisScale::Logarithmic) ); - group.sampling_mode(SamplingMode::Linear); + //group.sampling_mode(SamplingMode::Linear); //group.measurement_time(Duration::from_secs(300)); if !cfg!(windows) { @@ -161,7 +161,7 @@ mod bench { }, |shared| simcore_rs::simulation( shared, - |sim| sim.process(barbershop(sim, sim_duration)) + |sim| Process::new(sim, barbershop(sim, sim_duration)) ), BatchSize::SmallInput ) diff --git a/examples/ferry.rs b/examples/ferry.rs index da4ea7721897df5bd9b1fc1e2e51a95030aeff96..ac8dadecbab2dbf7b611c9b216678029a241329e 100644 --- a/examples/ferry.rs +++ b/examples/ferry.rs @@ -184,8 +184,8 @@ mod bench { PlotConfiguration::default() .summary_scale(AxisScale::Logarithmic) ); - group.sampling_mode(SamplingMode::Linear); - group.measurement_time(Duration::from_secs(600)); + //group.sampling_mode(SamplingMode::Linear); + //group.measurement_time(Duration::from_secs(600)); if !cfg!(windows) { println!("Not running under Windows, skipping SLX benchmarks!"); @@ -243,7 +243,8 @@ mod bench { }, |shared| simcore_rs::simulation( shared, - |sim| sim.process( + |sim| Process::new( + sim, ferry(sim, sim_duration, FERRY_COUNT, HARBOR_COUNT) ) ), diff --git a/examples/philosophers.rs b/examples/philosophers.rs index 388668b6def2bf4dc3e0a880ed2205859371a02b..df1d7d347269cddd0c961dab92246b91dc5668db 100644 --- a/examples/philosophers.rs +++ b/examples/philosophers.rs @@ -180,7 +180,7 @@ mod bench { .summary_scale(AxisScale::Logarithmic) ); //group.sampling_mode(SamplingMode::Linear); - group.measurement_time(Duration::from_secs(900)); + //group.measurement_time(Duration::from_secs(900)); if !cfg!(windows) { println!("Not running under Windows, skipping SLX benchmarks!"); diff --git a/examples/slx/mod.rs b/examples/slx/mod.rs index b499a10245e491cf4ba9e05019f36ab4ab698699..f38c7cd1ad9006fe54c2a3f687f526c62dd67e05 100644 --- a/examples/slx/mod.rs +++ b/examples/slx/mod.rs @@ -60,7 +60,7 @@ pub fn slx_bench(program: &str, arguments: &[&str], iterations: usize) -> Result (1..) .map(|i| iterations >> i) .take_while(|&chunk_size| chunk_size > 0) - .inspect(|chunk_size| println!("reducing the chunk size to {}", chunk_size)) + // .inspect(|chunk_size| println!("reducing the chunk size to {}", chunk_size)) .map(|chunk_size| { (0..(iterations - 1)/chunk_size) .map(|_| chunk_size)