[Typo3-dev] Longer runtime from script

Kraft Bernhard kraftb at gmx.net
Sat Feb 26 19:53:45 CET 2005


Steffen Müller wrote:

> could you please collect and post some performance data when using gimp 
> this way?
> 

It seems as the Gimp takes longer for the conversion ...

the slowdown is mainly because i have to load and save the file for each
single conversion ... imageMagick does that conversion in one wash up ...

It's because I can't put single script-lines together and run the script
because the plugins just get read when gimp starts up (and i have it running
all the time)


Here are the times you wanted ... all times are taken with the files in memory
(with the gimp I can't say it really as it is estimated by an php-script)

convert was called manually from the commandline


-------------------------snip---------------------------------------
Time for convert to gray via image Magick:

real    0m0.086s
user    0m0.038s
sys     0m0.017s
-----------------
Time for convert to gray via Gimp

Input: typo3temp/temp/bb7b4b8670298e1dd10ba49b610cf59d.png
Output: typo3temp/temp/bb7b4b8670298e1dd10ba49b610cf59d.png
Params: -colorspace GRAY
cmd: colorspace
Array ( [0] => Array ( [cmd] => gray [params] => Array ( [0] => GRAY ) ) )

Gimp-Running Execute took 0.102864027023 seconds   (remark: convert to rgb)
Gimp-Running Execute took 0.102062940598 seconds   (remark: convert to gray)
Gimp-Running Execute took 0.102873086929 seconds   (remark: convert to png)
Total time : 0.30780005455 seconds

----------------------------------------------------------------------

slowdown factor : 3.58

----------------------------------------------------------------------
----------------------------------------------------------------------

Time for 2x2 blur via Image Magick

real    0m0.113s
user    0m0.087s
sys     0m0.009s

-----------------

Time for 2x2 blur via Gimp

Input: typo3temp/temp/55a7b454a1f444a9c161e6d660c7021e.png
Output: typo3temp/temp/55a7b454a1f444a9c161e6d660c7021e.png
Params: -v5blur 2x2
cmd: v5blur
Array ( [0] => Array ( [width] => 2 [height] => 2 [radius] => 10 [cmd] =>
v5blur ) )

Gimp-Running Execute took 0.102911949158 seconds   (remark: convert to rgb)
Gimp-Running Execute took 0.204010009766 seconds   (remark: blur)
Gimp-Running Execute took 0.204092979431 seconds   (remark: convert to png)
Total time : 0.511014938354 seconds

----------------------------------------------------------------------

slowdown factor : 4.522

----------------------------------------------------------------------
----------------------------------------------------------------------

Time for wave y=20 l=30 via Image Magick

real    0m0.142s
user    0m0.111s
sys     0m0.012s

----------------------------------------------------------------------

Time for wave y=20 l=30 via Gimp

Input: typo3temp/temp/fec03471acf93352a0347f4502aa8e57.png
Output: typo3temp/temp/fec03471acf93352a0347f4502aa8e57.png
Params: -wave 20 30
cmd: wave
Array ( [0] => Array ( [cmd] => wave [amplitude] => 20 [phase] => 0
[wavelength] => 30 [type] => 0 [reflective] => 0 ) )

Gimp-Running Execute took 0.102939128876 seconds
Gimp-Running Execute took 0.204013824463 seconds
Gimp-Running Execute took 0.204022884369 seconds
Total time : 0.510975837708 seconds

----------------------------------------------------------------------

slowdown factor : 3.598

----------------------------------------------------------------------
----------------------------------------------------------------------
-------------------------snip---------------------------------------


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------




More information about the TYPO3-dev mailing list