libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libcvd-members] SubImages no longer need to be distinct from BasicI


From: Gerhard Reitmayr
Subject: Re: [libcvd-members] SubImages no longer need to be distinct from BasicImages.
Date: Wed, 29 Oct 2008 15:45:00 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080720)


E. Rosten wrote:
> On Wed, 29 Oct 2008, Georg Klein wrote:
> 
>> gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)
>>
>> forloop 8.26731  (494985830000)
>> imageref 9.94063  (494985830000)
>> basicimage_iterator 6.41841  (494985830000)
>> subimage_iterator 8.32609  (494985830000)
>> subimage_iterator_fastend 8.35848  (494985830000)
>> subimage_iterator_stl 8.34101  (494985830000)
>> basicimage_iterator_stl 6.43227  (494985830000)
>>
>> Reducing image size to 20x20 & boosting iterations:
>> forloop 3.21801  (197090000000)
>> imageref 4.22899  (197090000000)
>> basicimage_iterator 2.28253  (197090000000)
>> subimage_iterator 3.39948  (197090000000)
>> subimage_iterator_fastend 4.62725  (197090000000)
>> subimage_iterator_stl 4.89984  (197090000000)
>> basicimage_iterator_stl 2.2789  (197090000000)
> 
> 
> 
> 
> Same CPU, gcc 4.2, -O3 on a 20x20 image with 10000000 iterations:
> 
> forloop 4.1284  (197090000000)
> imageref 7.90586  (197090000000)
> basicimage_iterator 2.7197  (197090000000)
> subimage_iterator 6.30506  (197090000000)
> subimage_iterator_fastend 6.85669  (197090000000)
> subimage_iterator_stl 6.26535  (197090000000)
> basicimage_iterator_stl 2.71647  (197090000000)
> 
> 
> Maybe they do still need to be distinct.
> 
> -Ed
> 

again, small 20x20

grimlock gr281: ./speed-4.3
forloop 2.0316  (197090000000)
imageref 6.92744  (197090000000)
basicimage_iterator 1.3678  (197090000000)
subimage_iterator 5.51881  (197090000000)
subimage_iterator_fastend 3.60213  (197090000000)
subimage_iterator_stl 3.69137  (197090000000)
basicimage_iterator_stl 1.37104  (197090000000)

grimlock gr281: ./speed
forloop 5.25369  (197090000000)
imageref 8.18248  (197090000000)
basicimage_iterator 2.61529  (197090000000)
subimage_iterator 3.84462  (197090000000)
subimage_iterator_fastend 5.14501  (197090000000)
subimage_iterator_stl 3.78044  (197090000000)
basicimage_iterator_stl 2.60347  (197090000000)

interestingly subimage_iterator and subimage_iterator_fastend switch
between compilers


-- 
Gerhard Reitmayr
MIL, Engineering Department, Cambridge University
http://www.eng.cam.ac.uk/~gr281/
tel: +44 1223 765150




reply via email to

[Prev in Thread] Current Thread [Next in Thread]