We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16203e2 commit bc57db5Copy full SHA for bc57db5
library/coretests/benches/str.rs
@@ -11,3 +11,8 @@ mod iter;
11
fn str_validate_emoji(b: &mut Bencher) {
12
b.iter(|| str::from_utf8(black_box(corpora::emoji::LARGE.as_bytes())));
13
}
14
+
15
+#[bench]
16
+fn str_validate_ascii(b: &mut Bencher) {
17
+ b.iter(|| str::from_utf8(black_box(corpora::en::LARGE.as_bytes())));
18
+}
0 commit comments