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

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 19 16:57:37 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20081019/9d490960/attachment.htm>


More information about the Insight-developers mailing list