[Dcmlib] [Gdcm2] GDCM_SUPPORT_BROKEN_IMPLEMENTATION: overhead

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Aug 8 07:11:22 CEST 2006


Ok I did ran some experiment to see if indeed the fact that GDCM
support broken images was introducing some overhead.
So I compiled a release GDCM with
GDCM_SUPPORT_BROKEN_IMPLEMENTATION:ON and one with
GDCM_SUPPORT_BROKEN_IMPLEMENTATION:OFF.
Becarefull the second one needs to run on the output from the first
one (TestWriter will purify the images from gdcmData for you).

With GDCM_SUPPORT_BROKEN_IMPLEMENTATION:ON: (*)
With GDCM_SUPPORT_BROKEN_IMPLEMENTATION:OFF: (**)

Basically one can have:
(1.430+1.379+1.375+1.375+1.375+1.373+1.367+1.384)/8
1.38225
(1.124+1.164+1.161+1.154+1.159+1.162+1.183+1.160+1.207+1.169)/10
1.1643

Thus
(1.38225-1.1643)/1.38225*100
15.767769940314711

15% ... yeah I guess this becomes non-negligeable after all...

(*)
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.04s user 0.32s system 95% cpu 1.430 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.00s user 0.38s system 99% cpu 1.379 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.00s user 0.38s system 99% cpu 1.375 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.00s user 0.38s system 99% cpu 1.375 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.06s user 0.31s system 99% cpu 1.375 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.02s user 0.36s system 99% cpu 1.373 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.09s user 0.28s system 99% cpu 1.367 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin2
/home/mathieu/Projects/GDCM/gdcm/bin2/bin/gdcmDSEDTests TestReader
>&/tmp/log  1.08s user 0.30s system 99% cpu 1.384 total
mathieu at smallfry $ gvimdiff Testing/Source/Data/gdcmDataImages.h
../bin3/Testing/Source/Data/gdcmDataImages.h
~/Projects/GDCM/gdcm/bin2



(**)
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.80s user 0.32s system 99% cpu 1.124 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.85s user 0.31s system 99% cpu 1.164 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.86s user 0.30s system 99% cpu 1.161 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.86s user 0.30s system 99% cpu 1.154 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.80s user 0.36s system 99% cpu 1.159 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.86s user 0.30s system 99% cpu 1.162 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.90s user 0.28s system 99% cpu 1.183 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.87s user 0.29s system 99% cpu 1.160 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.93s user 0.26s system 99% cpu 1.207 total
mathieu at smallfry $ time
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader >&
/tmp/log                             ~/Projects/GDCM/gdcm/bin3
/home/mathieu/Projects/GDCM/gdcm/bin3/bin/gdcmDSEDTests TestReader
>&/tmp/log  0.80s user 0.36s system 99% cpu 1.169 total
mathieu at smallfry $

~/Projects/GDCM/gdcm/bin3
-- 
Mathieu

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers



More information about the Dcmlib mailing list