Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
library
/
core
/
benches
/
str.rs
blob: 7d36eff3d6c8bd40399c13956e7d73b9151af453 [
file
] [
log
] [
blame
]
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
())));
}