From 53be4ee685f2bc1fbbb79b9ab02ee6679de85694 Mon Sep 17 00:00:00 2001 From: LoganDark Date: Tue, 21 Jun 2022 20:20:18 -0700 Subject: [PATCH] Remove blur_horiz and blur_vert from benchmarks --- src/test.rs | 90 ----------------------------------------------------- 1 file changed, 90 deletions(-) diff --git a/src/test.rs b/src/test.rs index 65899a2..543b4b7 100755 --- a/src/test.rs +++ b/src/test.rs @@ -10,48 +10,6 @@ const HEIGHT: usize = 480; const WIDTH_NONZERO: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(WIDTH) }; const HEIGHT_NONZERO: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(HEIGHT) }; -#[bench] -#[inline(never)] -fn blur_argb_16_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_argb(&mut buf.as_mut(), 16)); -} - -#[bench] -#[inline(never)] -fn blur_argb_128_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_argb(&mut buf.as_mut(), 128)); -} - -#[bench] -#[inline(never)] -fn blur_argb_1024_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_argb(&mut buf.as_mut(), 1024)); -} - -#[bench] -#[inline(never)] -fn blur_argb_16_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_argb(&mut buf.as_mut(), 16)); -} - -#[bench] -#[inline(never)] -fn blur_argb_128_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_argb(&mut buf.as_mut(), 128)); -} - -#[bench] -#[inline(never)] -fn blur_argb_1024_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_argb(&mut buf.as_mut(), 1024)); -} - #[bench] #[inline(never)] fn blur_argb_16(bencher: &mut Bencher) { @@ -73,54 +31,6 @@ fn blur_argb_1024(bencher: &mut Bencher) { bencher.iter(|| crate::blur_argb(&mut buf.as_mut(), 1024)); } -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_16_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_srgb(&mut buf.as_mut(), 16)); -} - -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_128_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_srgb(&mut buf.as_mut(), 128)); -} - -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_1024_horiz(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_horiz_srgb(&mut buf.as_mut(), 1024)); -} - -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_16_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_srgb(&mut buf.as_mut(), 16)); -} - -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_128_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_srgb(&mut buf.as_mut(), 128)); -} - -#[cfg(feature = "blend-srgb")] -#[bench] -#[inline(never)] -fn blur_srgb_1024_vert(bencher: &mut Bencher) { - let mut buf = ImgVec::new(vec![0; WIDTH * HEIGHT], WIDTH, HEIGHT); - bencher.iter(|| crate::blur_vert_srgb(&mut buf.as_mut(), 1024)); -} - #[cfg(feature = "blend-srgb")] #[bench] #[inline(never)]