1
Fork 0
rust/library/core/benches/str.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
227 B
Rust
Raw Normal View History

2021-09-10 21:35:01 +02:00
use std::str;
2021-09-10 21:35:01 +02:00
use test::{Bencher, black_box};
2021-10-30 03:47:47 -07:00
mod char_count;
mod corpora;
mod debug;
2023-11-27 01:28:53 +01:00
mod iter;
2021-09-10 21:35:01 +02:00
#[bench]
fn str_validate_emoji(b: &mut Bencher) {
2021-10-30 03:47:47 -07:00
b.iter(|| str::from_utf8(black_box(corpora::emoji::LARGE.as_bytes())));
2021-09-10 21:35:01 +02:00
}