2021-09-10 14:35:01 -05:00
|
|
|
use std::str;
|
2024-07-28 17:13:50 -05:00
|
|
|
|
2021-09-10 14:35:01 -05:00
|
|
|
use test::{black_box, Bencher};
|
|
|
|
|
2021-10-30 05:47:47 -05:00
|
|
|
mod char_count;
|
|
|
|
mod corpora;
|
2024-04-30 02:18:52 -05:00
|
|
|
mod debug;
|
2023-11-26 18:28:53 -06:00
|
|
|
mod iter;
|
2021-09-10 14:35:01 -05:00
|
|
|
|
|
|
|
#[bench]
|
|
|
|
fn str_validate_emoji(b: &mut Bencher) {
|
2021-10-30 05:47:47 -05:00
|
|
|
b.iter(|| str::from_utf8(black_box(corpora::emoji::LARGE.as_bytes())));
|
2021-09-10 14:35:01 -05:00
|
|
|
}
|