diff --git a/2023/day08_haunted_wasteland/Cargo.toml b/2023/day08_haunted_wasteland/Cargo.toml index 1caf8f1..2c4408e 100644 --- a/2023/day08_haunted_wasteland/Cargo.toml +++ b/2023/day08_haunted_wasteland/Cargo.toml @@ -6,3 +6,10 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] + +[dev-dependencies] +criterion = "0.5.1" + +[[bench]] +name = "test_benchmark" +harness = false diff --git a/2023/day08_haunted_wasteland/src/lib.rs b/2023/day08_haunted_wasteland/src/lib.rs index 10a34dd..95f3806 100644 --- a/2023/day08_haunted_wasteland/src/lib.rs +++ b/2023/day08_haunted_wasteland/src/lib.rs @@ -98,9 +98,6 @@ fn walk(network: &HashMap, path: &[Direction], start: &[Node let mut cycles = vec![0; start.len()]; let len = path.len(); - for g in start { - eprintln!("{}", from_node(g)); - } for step in 0.. { if cycles.iter().all(|offset| offset != &0) { // The first step all ghosts will be at their destinations will be the least common