Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Remove blur_horiz and blur_vert from benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganDark committed Jun 22, 2022
1 parent ce3605e commit 53be4ee
Showing 1 changed file with 0 additions and 90 deletions.
90 changes: 0 additions & 90 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)]
Expand Down

0 comments on commit 53be4ee

Please sign in to comment.