[Insight-developers] Image Orientation & Profiling Template Meta-Programming (loop unrolling)

Bill Lorensen bill.lorensen at gmail.com
Mon Oct 20 09:04:29 EDT 2008


Not quite as dramatic for the Borland compiler, but still better

-----------------------------------------------------
TEMPLATE META_PROGRAMMING          OFF         ON
-----------------------------------------------------
itkOrientedImageProfileTest1                  10.68           8.45
itkOrientedImageProfileTest2                  10.61           8.40
itkOrientedImageProfileTest3                    7.59           6.7
-----------------------------------------------------


On Sun, Oct 19, 2008 at 4:57 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Bill,
>
> Here are the results of profiling the combined performance of
>
> TransformPhysicalPointToIndex
> TransformIndexToPhysicalPoint
>
> in "dagobah"
>
>  A Dell Laptop E6500,
> Dual Core,  T9600  @ 2.80GHz,
> 4Gb RAM,
>
> running
>
> Ubuntu Linux 8.0.4
> gcc 4.2.3
> with ITK compiled in Release mode
> ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE = ON
>
>
> (times are reported in "seconds"):
>
> -----------------------------------------------------
> TEMPLATE META_PROGRAMMING          OFF         ON
> -----------------------------------------------------
> itkOrientedImageProfileTest1     1.28502    0.120793
> itkOrientedImageProfileTest2     1.57651    0.106724
> itkOrientedImageProfileTest3     1.26905    0.111022
> -----------------------------------------------------
>
> That is,
> about a 10X factor faster when TEMPLATE META-PROGRAMMING is ON.
>
>
> In this platform,
> this flag is definitely something to keep ON.
>
>
>     Luis
>
>
>


More information about the Insight-developers mailing list