diff --git a/Cargo.lock b/Cargo.lock index 35f095a19e231..75e89d42c3280 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,6 +111,15 @@ dependencies = [ "alloc-no-stdlib", ] +[[package]] +name = "alloca" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4" +dependencies = [ + "cc", +] + [[package]] name = "allocator-api2" version = "0.2.21" @@ -2920,10 +2929,11 @@ dependencies = [ [[package]] name = "criterion" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1c047a62b0cc3e145fa84415a3191f628e980b194c2755aa12300a4e6cbd928" +checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3" dependencies = [ + "alloca", "anes", "cast", "ciborium", @@ -2932,6 +2942,7 @@ dependencies = [ "itertools 0.13.0", "num-traits", "oorandom", + "page_size", "plotters", "rayon", "regex", @@ -2944,9 +2955,9 @@ dependencies = [ [[package]] name = "criterion-plot" -version = "0.6.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1bcc0dc7dfae599d84ad0b1a55f80cde8af3725da8313b528da95ef783e338" +checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea" dependencies = [ "cast", "itertools 0.13.0", @@ -7708,6 +7719,16 @@ dependencies = [ "unicode-width 0.1.13", ] +[[package]] +name = "page_size" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "parking" version = "2.2.0" diff --git a/Cargo.toml b/Cargo.toml index 1cfdf70ae5530..ed8631a6d1e94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -156,6 +156,7 @@ clap = { version = "4.5.60", default-features = false, features = ["derive", "er clap_complete = "4.5.66" colored = { version = "3.1.1", default-features = false } const-str = { version = "1.1.0", default-features = false } +criterion = "0.8" crossbeam-utils = { version = "0.8.21", default-features = false } darling = { version = "0.20.11", default-features = false, features = ["suggestions"] } dashmap = { version = "6.1.0", default-features = false } @@ -479,7 +480,7 @@ approx = "0.5.1" assert_cmd = { version = "2.0.17", default-features = false } aws-smithy-runtime = { version = "1.8.3", default-features = false, features = ["tls-rustls"] } base64 = "0.22.1" -criterion = { version = "0.7.0", features = ["html_reports", "async_tokio"] } +criterion = { workspace = true, features = ["html_reports", "async_tokio"] } itertools.workspace = true libc.workspace = true mock_instant.workspace = true diff --git a/lib/dnsmsg-parser/Cargo.toml b/lib/dnsmsg-parser/Cargo.toml index 9861bd93718a8..b392579014ef1 100644 --- a/lib/dnsmsg-parser/Cargo.toml +++ b/lib/dnsmsg-parser/Cargo.toml @@ -15,7 +15,7 @@ hickory-proto.workspace = true snafu.workspace = true [dev-dependencies] -criterion = "0.7" +criterion.workspace = true [lib] bench = false diff --git a/lib/tracing-limit/Cargo.toml b/lib/tracing-limit/Cargo.toml index 2308c8ce81084..ba52c12fdea99 100644 --- a/lib/tracing-limit/Cargo.toml +++ b/lib/tracing-limit/Cargo.toml @@ -15,7 +15,7 @@ tracing-subscriber = { workspace = true, features = ["registry", "std"] } dashmap = { version = "6.1.0", default-features = false } [dev-dependencies] -criterion = "0.7" +criterion.workspace = true mock_instant.workspace = true serial_test.workspace = true tracing = "0.1.44" diff --git a/lib/vector-buffers/Cargo.toml b/lib/vector-buffers/Cargo.toml index 9f712b573af9b..04ad96436baf1 100644 --- a/lib/vector-buffers/Cargo.toml +++ b/lib/vector-buffers/Cargo.toml @@ -37,7 +37,7 @@ ordered-float.workspace = true [dev-dependencies] clap.workspace = true -criterion = { version = "0.7", features = ["html_reports", "async_tokio"] } +criterion = { workspace = true, features = ["html_reports", "async_tokio"] } crossbeam-queue = "0.3.12" hdrhistogram = "7.5.4" metrics-tracing-context.workspace = true diff --git a/lib/vector-core/Cargo.toml b/lib/vector-core/Cargo.toml index f36a5944c3ea5..a7e33377bc09c 100644 --- a/lib/vector-core/Cargo.toml +++ b/lib/vector-core/Cargo.toml @@ -78,7 +78,7 @@ prost-build.workspace = true [dev-dependencies] base64 = "0.22.1" chrono-tz.workspace = true -criterion = { version = "0.7.0", features = ["html_reports"] } +criterion = { workspace = true, features = ["html_reports"] } env-test-util = "1.0.1" quickcheck.workspace = true quickcheck_macros = "1"