Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
library
/
core
/
benches
/
str.rs
blob: 0f14809444bc562ba7e3331c04f03847238e13fe [
file
] [
log
] [
blame
]
use
std
::
str
;
use
test
::{
black_box
,
Bencher
};
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
())));
}