about summary refs log tree commit diff
path: root/library/coretests/benches/str.rs
blob: 2f7d9d56a70b7ac63fe6fe0ae9ee793dbfdf8577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::str;

use test::{Bencher, black_box};

mod char_count;
mod corpora;
mod debug;
mod iter;

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