https://bugzilla.wikimedia.org/show_bug.cgi?id=32721

--- Comment #12 from John Cupitt <[email protected]> 2012-09-28 11:51:19 UTC ---
I've redone all the benchmarks with the latest version of each package. Thank
you for the link to your interesting project Derrick.

Summary:

program       | real    user    sys     peak mem
--------------+---------------------------------
vipsthumbnail | 5.384   5.272   0.112   25mb
pngscale      | 6.46    6.384   0.064   <1mb
convert       | 27.003  21.473  8.713   83mb

Notes:

Testing was on an elderly two-processor Opteron workstation with a PNG version
of the Chicago.jpg image above, using default (6) PNG compression. See below
for the test log. The machine was running Ubuntu 12.04.

vipsthumbnail is from vips-7.30.1. It has had some good improvements to the
line cache since the previous benchmark above, and performance is up as well.

pngscale uses very little memory and quality is reasonable too.

The latest version of convert is now decompressing to a temporary file and
processing from there, hence the large systime. This has dramatically reduced
memory use.

peak mem is measured with a version of Tim Starling's perl program to watch
strace output:

http://www.vips.ecs.soton.ac.uk/development/peakmem.pl

Output:

http://www.vips.ecs.soton.ac.uk/development/tn_Chicago-vips.jpg
http://www.vips.ecs.soton.ac.uk/development/tn_Chicago-pngscale.png
http://www.vips.ecs.soton.ac.uk/development/tn_Chicago-magick2.jpg

Log:

I've edited this down, I ran each command four times and picked the fastest.
This is just supposed to show the exact commands I ran. 

$ vips copy Chicago.jpg Chicago.png
$ time convert Chicago.png -resize 800 tn_Chicago-magick2.jpg
real    0m27.003s
user    0m21.697s
sys     0m8.713s
$ peakmem.pl convert Chicago.png -resize 800 tn_Chicago-magick2.jpg
83 MB
$ time vipsthumbnail Chicago.png --size 800 --interpolator bicubic -o
tn_Chicago-vips.jpg
real    0m5.384s
user    0m5.268s
sys     0m0.112s
$ peakmem.pl vipsthumbnail Chicago.png --size 800 --interpolator bicubic -o
tn_Chicago-vips.jpg
25 MB
$ time pngscale Chicago.png tn_Chicago-pngscale.png 800 -1
real    0m6.463s
user    0m6.384s
sys     0m0.064s
$ peakmem.pl pngscale Chicago.png tn_Chicago-pngscale.png 800 -1
0 MB

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to