rust/library/core/benches/str.rs
2023-11-27 22:06:35 +01:00

12 lines
215 B
Rust

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