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

Commit

Permalink
Remove conditional compilation from iai
Browse files Browse the repository at this point in the history
It's not worth it
  • Loading branch information
LoganDark committed Jun 22, 2022
1 parent 136d183 commit ce3605e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions benches/iai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,10 @@ fn blur_argb_16() { stackblur_iter::blur_argb(&mut img(), 16) }
fn blur_argb_128() { stackblur_iter::blur_argb(&mut img(), 128) }
fn blur_argb_1024() { stackblur_iter::blur_argb(&mut img(), 1024) }

#[cfg(feature = "blend-srgb")]
fn blur_srgb_16() { stackblur_iter::blur_srgb(&mut img(), 16) }
#[cfg(feature = "blend-srgb")]
fn blur_srgb_128() { stackblur_iter::blur_srgb(&mut img(), 128) }
#[cfg(feature = "blend-srgb")]
fn blur_srgb_1024() { stackblur_iter::blur_srgb(&mut img(), 1024) }

#[cfg(not(feature = "blend-srgb"))]
iai::main!(
blur_argb_16,
blur_argb_128,
blur_argb_1024
);

#[cfg(feature = "blend-srgb")]
iai::main!(
blur_argb_16,
blur_argb_128,
Expand Down

0 comments on commit ce3605e

Please sign in to comment.