diff options
-rw-r--r-- | src/crates/candelabra/src/profiler/mod.rs | 2 | ||||
-rw-r--r-- | src/tests/aoc_2022_08/benches/main.rs | 4 | ||||
-rw-r--r-- | src/tests/aoc_2022_08/src/lib.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/crates/candelabra/src/profiler/mod.rs b/src/crates/candelabra/src/profiler/mod.rs index aa53d6c..ecfef7b 100644 --- a/src/crates/candelabra/src/profiler/mod.rs +++ b/src/crates/candelabra/src/profiler/mod.rs @@ -169,7 +169,7 @@ impl State { let child = Command::new("cargo") .current_dir(&project.source_dir) - .args(["bench", "--bench", name, "--", "--profile-time", "5"]) + .args(["bench", "--bench", name, "--", "--profile-time", "10"]) .env("PROFILER_OUT_DIR", profiler_out_dir.as_ref()) // Where profiler info gets outputted .stdout(Stdio::piped()) .stderr(if log_enabled!(Level::Debug) { diff --git a/src/tests/aoc_2022_08/benches/main.rs b/src/tests/aoc_2022_08/benches/main.rs index 462480e..2dd201f 100644 --- a/src/tests/aoc_2022_08/benches/main.rs +++ b/src/tests/aoc_2022_08/benches/main.rs @@ -3,8 +3,8 @@ use criterion::{criterion_group, criterion_main, BatchSize, BenchmarkId, Criteri use rand::{rngs::StdRng, SeedableRng}; fn run_benches(c: &mut Criterion) { - let mut rng = StdRng::seed_from_u64(42); - for size in [1000, 2000].iter() { + let mut rng = StdRng::seed_from_u64(1337); + for size in [1000, 1100].iter() { c.bench_with_input( BenchmarkId::new("aoc_2022_08-part1", size), size, diff --git a/src/tests/aoc_2022_08/src/lib.rs b/src/tests/aoc_2022_08/src/lib.rs index 9f60ac8..28898e9 100644 --- a/src/tests/aoc_2022_08/src/lib.rs +++ b/src/tests/aoc_2022_08/src/lib.rs @@ -144,7 +144,7 @@ mod tests { use super::*; fn parse_input(input: &str) -> HeightMap { - let mut grid: Vec<Vec<_>> = input + let grid: Vec<Vec<_>> = input .lines() .map(|x| { x.chars() |