rust/library/coretests/benches/str.rs
okaneco a5ba24843d Relocate bench and use str corpora for data
Add #[inline(always)] to inner function and check not for filecheck test
2025-10-08 14:42:33 -04:00

14 lines
253 B
Rust

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