summaryrefslogtreecommitdiffstats
path: root/library/core/benches/str.rs
blob: 78865d81fb90c3f965e3d061d11d38f387fdb55f (plain)
1
2
3
4
5
6
7
8
9
10
use std::str;
use test::{black_box, Bencher};

mod char_count;
mod corpora;

#[bench]
fn str_validate_emoji(b: &mut Bencher) {
    b.iter(|| str::from_utf8(black_box(corpora::emoji::LARGE.as_bytes())));
}