diff --git a/html5ever/Cargo.toml b/html5ever/Cargo.toml
index 39e79992..0d8482ac 100644
--- a/html5ever/Cargo.toml
+++ b/html5ever/Cargo.toml
@@ -20,7 +20,7 @@ markup5ever = { version = "0.11", path = "../markup5ever" }
typed-arena = "2.0.2"
[target.'cfg(bench)'.dev-dependencies]
-criterion = "0.3"
+criterion = "0.5"
[build-dependencies]
quote = "1"
diff --git a/xml5ever/Cargo.toml b/xml5ever/Cargo.toml
index a7a6f199..2ded0c33 100644
--- a/xml5ever/Cargo.toml
+++ b/xml5ever/Cargo.toml
@@ -24,7 +24,7 @@ markup5ever = {version = "0.11", path = "../markup5ever" }
rustc-test = "0.3"
[target.'cfg(bench)'.dev-dependencies]
-criterion = "0.3"
+criterion = "0.5"
[[bench]]
name = "xml5ever"