SVG benchmarks/test 20080112

Scripts
Output was collected to svg.out, an error log called error was also collected. These were all in my home directory, /home/fun.

svgbench.sh:

export SVGDIR=/home/fun/svgs export WIDTH=600 export OUTFILE=/tmp/$$ /usr/bin/time --format 'ImageMagick\t%e\t%U\t%S\t' /home/fun/imb.sh /usr/bin/time --format 'Inkscape\t%e\t%U\t%S\t' /home/fun/ink.sh /usr/bin/time --format 'Batik\t%e\t%U\t%S\t' /home/fun/batik.sh /usr/bin/time --format 'rsvg\t%e\t%U\t%S\t' /home/fun/rsvg.sh rm $OUTFILE
 * 1) !/bin/bash
 * 2) SVG benchmarker
 * 3) Usage: svgbench.sh svgdir
 * 4) Written by David Gerard 2008-01-11
 * 5) Public domain. (Who'd copyright this thing?)
 * 6) If you can't write a better version of this in about 2 seconds ...

batik.sh:

for TESTFILE in `ls $SVGDIR` do    echo -n $TESTFILE " ">>/home/fun/error TESTFILE=$SVGDIR/$TESTFILE java -Djava.awt.headless=true -jar /home/fun/batik-1.7/batik-rasterizer.jar -w $WIDTH -d $OUTFILE $TESTFILE 1>/dev/null 2>>/home/fun/error done echo >>/home/fun/error
 * 1) !/bin/bash

imb.sh:

for TESTFILE in `ls $SVGDIR` do    echo -n $TESTFILE " ">>/home/fun/error TESTFILE=$SVGDIR/$TESTFILE convert -background white -geometry $WIDTH $TESTFILE PNG:$OUTFILE >/dev/null 2>>/home/fun/error done echo >>/home/fun/error
 * 1) !/bin/bash

inkscape.sh:

for TESTFILE in `ls $SVGDIR` do    echo -n $TESTFILE " ">>/home/fun/error TESTFILE=$SVGDIR/$TESTFILE inkscape -z -w $WIDTH -f $TESTFILE -e $OUTFILE >/dev/null 2>>/home/fun/error done echo >>/home/fun/error
 * 1) !/bin/bash

rsvg.sh:

for TESTFILE in `ls $SVGDIR` do    echo -n $TESTFILE " ">>/home/fun/error TESTFILE=$SVGDIR/$TESTFILE rsvg -w$WIDTH $TESTFILE $OUTFILE >/dev/null 2>>/home/fun/error done echo >>/home/fun/error
 * 1) !/bin/bash

Test files
12communesWilayaConstantine.svg                               EspecesMammiferesMenacees_fr.svg 18_ABC_DUI.svg                                                Flag_of_Cyprus_(bordered).svg 1-D_kinematics.svg                                            Flag_of_Ten_Boer.svg 2006_Brazilian_Election_2nd_round.svg                         Glasbutton_Tipp.svg 2006_Brazilian_Election_Senators.svg                          HH_object_diagram.svg 200pF_capacitance.svg                                         Ironless_electric_motor.svg Accidentals-piano_keyboard.svg                                Japanese_Road_sign_(Children).svg Adjustable_wrench.svg                                         Japanese_Road_sign_(Falling_rocks).svg African_language_families.svg                                 Map_of_USA,_NFL.svg A_large_blank_world_map_with_oceans_marked_in_blue.svg        Map_of_US_sodomy_laws.svg Alaska_compared_to_Lower_48.svg                               MARTA_Rail_Map.svg AMD_A64_Opteron_arch.svg                                      NucleicAcid.svg Ankerreactie.svg                                              Nuvola_apps_kalzium.svg Arms_Arbuthnot_of_Edinburgh_(entire).svg                      Nuvola_apps_package_graphics.svg Arms_Viscount_of_Arbuthnott_(entire).svg                      Pfeil_links_oben.svg At-will_employment_-_covenant-of-good-faith-and-fair-dealing_exceptions.svg Pictgram_bicycle_man.svg Aztreonam_structure.svg                                       Primitive.svg Ballvalve.svg                                                 Q_space.svg BBC_broadcasting_expenditure_2005-2006.svg                    Replace_this_image_PL.svg BlankMap-USA-states-Canada-provinces.svg                      Sierpiński_curve_order_5.svg Blason_54.svg                                                 Squaring_the_square.svg Blason_ville_fr_Ablis_(Yvelines).svg                          Status_9.svg Brain_Surface_Gyri.SVG                                        SVG_filter_feTurbulence.svg CD-R.svg                                                      Symbol_LED.svg Cherenkov2.svg                                                USA_Counties.svg Cometorbit.svg                                                Violet_box.svg Cross_montessa.svg                                            Wikipedia's_W.svg Cscr-former.svg                                               X_Cubed.svg Ensign_of_the_Royal_Australian_Air_Force.svg