]> git.lizzy.rs Git - rust.git/blob - library/core/benches/str.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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 }