@@ -9,8 +9,9 @@ mkdir $tmp
99
1010echo building test image ...
1111vips colourspace sample2.v $tmp /t1.v srgb
12- vips replicate $tmp /t1.v $tmp /t2.v 20 15
13- vips extract_area $tmp /t2.v $tmp /x.tif[tile] 0 0 5000 5000
12+ # vips replicate $tmp/t1.v $tmp/t2.v 20 15
13+ vips replicate $tmp /t1.v $tmp /t2.v 40 30
14+ vips extract_area $tmp /t2.v $tmp /x.tif[tile] 0 0 10000 10000
1415vips copy $tmp /x.tif $tmp /x.jpg
1516vips copy $tmp /x.tif $tmp /x.ppm
1617vips copy $tmp /x.tif $tmp /x-strip.tif
@@ -87,15 +88,17 @@ rm -f *.csv
8788
8889echo " program, time (s), peak memory (MB)"
8990
90- benchmark tiffcp " tiffcp -s $tmp /x.tif $tmp /x2.tif"
91-
92- gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
93- benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
91+ export VIPS_CONCURRENCY=16
9492
9593gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
9694echo -n ppm-
9795benchmark vips-c " ./vips-c $tmp /x.ppm $tmp /x2.ppm"
9896
97+ benchmark tiffcp " tiffcp -s $tmp /x.tif $tmp /x2.tif"
98+
99+ gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
100+ benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
101+
99102benchmark vips.lua " ./vips.lua $tmp /x.tif $tmp /x2.tif"
100103
101104benchmark vips.php " ./vips.php $tmp /x.tif $tmp /x2.tif"
@@ -107,6 +110,14 @@ benchmark vips.py "./vips.py $tmp/x.tif $tmp/x2.tif"
107110
108111benchmark ruby-vips " ./ruby-vips.rb $tmp /x.tif $tmp /x2.tif"
109112
113+ benchmark vips-gegl.py " ./vips-gegl.py $tmp /x.tif $tmp /x2.tif"
114+
115+ gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
116+ export VIPS_CONCURRENCY=1
117+ echo -n 1thread-
118+ benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
119+ unset VIPS_CONCURRENCY
120+
110121gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
111122echo -n jpg-
112123benchmark vips-c " ./vips-c $tmp /x.jpg $tmp /x2.jpg"
@@ -115,9 +126,8 @@ benchmark pillow "./pillow.py $tmp/x-strip.tif $tmp/x2.tif"
115126
116127benchmark vips " ./vips.sh $tmp /x.tif $tmp /x2.tif"
117128
118- benchmark vips.js " ./vips.js $tmp /x.tif $tmp /x2.tif"
119-
120- benchmark vips-gegl.py " ./vips-gegl.py $tmp /x.tif $tmp /x2.tif"
129+ # sadly bitrotted in the shifting sands of node
130+ # benchmark vips.js "./vips.js $tmp/x.tif $tmp/x2.tif"
121131
122132echo -n ppm-
123133benchmark gm " ./gm.sh $tmp /x.ppm $tmp /x2.ppm"
@@ -137,12 +147,6 @@ benchmark pnm "./netpbm.sh $tmp/x-strip.tif $tmp/x2.tif"
137147
138148benchmark rmagick " ./rmagick.rb $tmp /x.tif $tmp /x2.tif"
139149
140- gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
141- export VIPS_CONCURRENCY=1
142- echo -n 1thread-
143- benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
144- unset VIPS_CONCURRENCY
145-
146150# this needs careful config, see
147151# https://github.com/jcupitt/vips-bench/issues/4
148152YMAGINE=/home/john/ymagine
@@ -163,36 +167,33 @@ benchmark convert "./im.sh $tmp/x.tif $tmp/x2.tif"
163167
164168benchmark imwand.py " ./imwand.py $tmp /x.tif $tmp /x2.tif"
165169
166- benchmark econvert " ./ei.sh $tmp /x-strip.tif $tmp /x2.tif"
167-
168170echo -n jpg-
169171benchmark convert " ./im.sh $tmp /x.jpg $tmp /x2.jpg"
170172
171- g++ -g -Wall opencv.cc ` pkg-config opencv --cflags --libs` -o opencv
173+ g++ -g -Wall opencv.cc ` pkg-config opencv4 --cflags --libs` -o opencv
172174benchmark opencv " ./opencv $tmp /x.tif $tmp /x2.tif"
173175
176+ benchmark oiio " ./oiio.sh $tmp /x.tif $tmp /x2.tif"
177+
178+ benchmark imagej " imagej -x 1000 -i $tmp /x-strip.tif -b bench.ijm"
179+
180+ benchmark econvert " ./ei.sh $tmp /x-strip.tif $tmp /x2.tif"
181+
174182gcc -Wall imlib2.c ` pkg-config imlib2 --cflags --libs` -o imlib2
175183benchmark imlib2 " ./imlib2 $tmp /x.tif $tmp /x2.tif"
176184
177185gcc freeimage.c -lfreeimage -o freeimage
178186benchmark freeimage " ./freeimage $tmp /x-strip.tif $tmp /x2.tif"
179187
180- benchmark oiio " ./oiio.sh $tmp /x.tif $tmp /x2.tif"
181-
182- benchmark is " ./is.rb $tmp /x-strip.tif $tmp /x2.tif"
188+ # broken, again, in ruby 2.7
189+ # benchmark is "./is.rb $tmp/x-strip.tif $tmp/x2.tif"
183190
184191gcc -Wall gd.c ` pkg-config gdlib --cflags --libs` -o gd
185192echo -n jpg-
186193benchmark gd " ./gd $tmp /x.jpg $tmp /x2.jpg"
187194
188195benchmark imagick " ./imagick.php $tmp /x.tif $tmp /x2.tif"
189196
190- benchmark pike " ./image.pike $tmp /x.tif $tmp /x2.tif"
191-
192- benchmark gmic " ./gmic.sh $tmp /x.tif $tmp /x2.tif"
193-
194- benchmark imagej " imagej -x 1000 -i $tmp /x-strip.tif -b bench.ijm"
195-
196197gcc -Wall gegl.c ` pkg-config gegl-0.4 --cflags --libs` -o gegl
197198# gegl-0.4 doesn't have tiff support built in
198199# echo -n tiff-
@@ -201,8 +202,12 @@ gcc -Wall gegl.c `pkg-config gegl-0.4 --cflags --libs` -o gegl
201202echo -n jpg-
202203benchmark gegl " ./gegl $tmp /x.jpg $tmp /x2.jpg"
203204
205+ benchmark pike " ./image.pike $tmp /x.tif $tmp /x2.tif"
206+
207+ benchmark gmic " ./gmic.sh $tmp /x.tif $tmp /x2.tif"
208+
204209# this has stopped working and needs fixing
205- benchmark scikit " ./scikit.py $tmp /x-strip.tif $tmp /x2.tif"
210+ # benchmark scikit "./scikit.py $tmp/x-strip.tif $tmp/x2.tif"
206211
207212benchmark octave " ./octave.m $tmp /x.tif $tmp /x2.tif"
208213
0 commit comments