use resize::Pixel::RGBA16P; use rgb::FromSlice; use fast_image_resize::pixels::U16x4; use testing::PixelTestingExt; mod utils; pub fn bench_downscale_rgba16(bench_group: &mut utils::BenchGroup) { type P = U16x4; let src_image = P::load_big_image(); utils::resize_resize( bench_group, RGBA16P, src_image.as_raw().as_rgba(), src_image.width(), src_image.height(), ); utils::libvips_resize::

(bench_group, true); utils::fir_resize::

(bench_group, true); } fn main() { let res = utils::run_bench(bench_downscale_rgba16, "Compare resize of RGBA16 image"); utils::print_and_write_compare_result(&res); }