]> git.lizzy.rs Git - rust.git/blob - library/core/benches/str.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / library / core / benches / str.rs
1 use std::str;
2 use test::{black_box, Bencher};
3
4 mod char_count;
5 mod corpora;
6
7 #[bench]
8 fn str_validate_emoji(b: &mut Bencher) {
9     b.iter(|| str::from_utf8(black_box(corpora::emoji::LARGE.as_bytes())));
10 }