]> git.lizzy.rs Git - rust.git/blob - library/core/benches/str.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }