mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
11 lines
205 B
Rust
11 lines
205 B
Rust
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())));
|
|
}
|