]> git.lizzy.rs Git - rust.git/blob - library/core/benches/str.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 }