mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
227 B
Rust
14 lines
227 B
Rust
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())));
|
|
}
|