]> git.lizzy.rs Git - rust.git/blob - library/core/benches/str.rs
Re-add track_caller to panic_no_unwind in bootstrap
[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 }