Added benchmarking

This commit is contained in:
Connor Johnstone
2023-12-01 15:39:12 -07:00
parent 48bd1e61cb
commit 86c583b3b0
5 changed files with 616 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
use std::iter::zip;
const WORD_LIST: [&str; 9] = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
// const REVERSE_WORD_LIST: [&str; 9] = ["eno", "owt", "eerht", "ruof", "evif", "xis", "neves", "thgie", "enin"];
const DIGIT_LIST: [&str; 9] = ["o1e", "t2o", "t3e", "f4r", "f5e", "s6x", "s7n", "e8t", "n9e"];
fn find_first_digit(line: &str) -> u32 {