diff --git a/Cargo.lock b/Cargo.lock index cc1fe9d..95eaebd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -241,22 +241,23 @@ dependencies = [ [[package]] name = "divan" -version = "0.1.2" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fab20f5802e0b897093184f5dc5d23447fa715604f238dc798f6da188b230019" +checksum = "5398159ee27f2b123d89b856bad61725442f37df5fb98c30cd570c318d594aee" dependencies = [ + "cfg-if", "clap", "condtype", "divan-macros", - "linkme", + "libc", "regex-lite", ] [[package]] name = "divan-macros" -version = "0.1.2" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c5d6354551e0b5c451a948814fc47fe745a14eac7835c087d60162661019db4" +checksum = "5092f66eb3563a01e85552731ae82c04c934ff4efd7ad1a0deae7b948f4b3ec4" dependencies = [ "proc-macro2", "quote", @@ -466,26 +467,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "linkme" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ed2ee9464ff9707af8e9ad834cffa4802f072caad90639c583dd3c62e6e608" -dependencies = [ - "linkme-impl", -] - -[[package]] -name = "linkme-impl" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba125974b109d512fccbc6c0244e7580143e460895dfd6ea7f8bbb692fd94396" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.38", -] - [[package]] name = "linux-raw-sys" version = "0.4.10" diff --git a/benchmark/Cargo.toml b/benchmark/Cargo.toml index 76f8e73..afe470d 100644 --- a/benchmark/Cargo.toml +++ b/benchmark/Cargo.toml @@ -8,7 +8,7 @@ publish = false [dependencies] pomsky = { version = "0.11.0", path = "../pomsky-lib" } -divan = "0.1.2" +divan = "0.1.11" melody_compiler = "0.19.0" [[bench]] diff --git a/benchmark/benches/main.rs b/benchmark/benches/main.rs index 9ecb41e..7a323ef 100644 --- a/benchmark/benches/main.rs +++ b/benchmark/benches/main.rs @@ -92,10 +92,10 @@ mod compile { ); } -#[divan::bench(consts = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13])] -pub fn range(bencher: divan::Bencher) { - let max = "3458709621".repeat((N + 9) / 10); - let max = &max[..N]; +#[divan::bench(args = 1..=13)] +pub fn range(bencher: divan::Bencher, n: usize) { + let max = "3458709621".repeat((n + 9) / 10); + let max = &max[..n]; let input = format!("range '0'-'{max}'"); bencher