Added Benchmarking and removed debug printing from 2023 day 08
This commit is contained in:
parent
46f6de603b
commit
c4ac5027b1
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -98,9 +98,6 @@ fn walk(network: &HashMap<Node, (Node, Node)>, 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue