#![allow(unused_imports, unused_macros)]
pub mod inputs;
macro_rules! benchmark_name {
(
$group:expr, $name:expr, $matcher:expr, $size_name:expr, $input:expr
) => {{
let input = $input;
$group.throughput(Throughput::Bytes(input.len().try_into().unwrap()));
$group.bench_with_input(
BenchmarkId::new($name, $size_name),
input,
|b, input| {
b.iter(|| {
htmlize::unescape::internal::unescape_in($matcher, &*input)
})
},
);
}};
}
pub(crate) use benchmark_name;
macro_rules! benchmark {
( $group:expr, $function:ident, $size_name:expr, $input:expr ) => {{
let input = $input;
$group.throughput(Throughput::Bytes(input.len().try_into().unwrap()));
$group.bench_with_input(
BenchmarkId::new(stringify!($function), $size_name),
input,
|b, input| b.iter(|| $function(&*input)),
);
}};
}
pub(crate) use benchmark;