@@ -9,10 +9,8 @@ mkdir $tmp
99
1010echo building test image ...
1111vips colourspace sample2.v $tmp /t1.v srgb
12- vips colourspace sample2.v $tmp /t1.v srgb
1312vips replicate $tmp /t1.v $tmp /t2.v 20 15
14- vips extract_area $tmp /t2.v $tmp /x.tif[tile] 0 0 5000 5000
15- vips copy $tmp /x.tif $tmp /x_strip.tif
13+ vips extract_area $tmp /t2.v $tmp /x.tif 0 0 5000 5000
1614vips copy $tmp /x.tif $tmp /x.jpg
1715vips copy $tmp /x.tif $tmp /x.ppm
1816vipsheader $tmp /x.tif
@@ -28,7 +26,7 @@ real_time() {
2826 # get just the "real 0.2" line
2927 real=($( cat tmp/x | grep real) )
3028
31- # just the the number
29+ # and just the number
3230 return_real_time=${real[1]}
3331}
3432
@@ -37,7 +35,7 @@ real_time() {
3735# sleep for two secs between runs to let the system settle -- after a run
3836# there's a short period of disc chatter we want to avoid
3937
40- # check that services like tracker are not running
38+ # you should check that services like tracker are not running
4139
4240get_time () {
4341 cmd=$*
@@ -89,12 +87,11 @@ echo "program, time (s), peak memory (MB)"
8987
9088benchmark tiffcp " tiffcp -s $tmp /x.tif $tmp /x2.tif"
9189
90+ benchmark pillow " ./pillow.py $tmp /x.tif $tmp /x2.tif"
91+
9292gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
9393benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
9494
95- echo -n strip-
96- benchmark vips-c " ./vips-c $tmp /x_strip.tif $tmp /x2.tif"
97-
9895gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
9996echo -n ppm-
10097benchmark vips-c " ./vips-c $tmp /x.ppm $tmp /x2.ppm"
@@ -103,21 +100,23 @@ benchmark vips.lua "./vips.lua $tmp/x.tif $tmp/x2.tif"
103100
104101benchmark vips.php " ./vips.php $tmp /x.tif $tmp /x2.tif"
105102
106- benchmark vips8 -gegl.py " ./vips8 -gegl.py $tmp /x.tif $tmp /x2.tif"
103+ benchmark vips -gegl.py " ./vips -gegl.py $tmp /x.tif $tmp /x2.tif"
107104
108- g++ vips8 .cc ` pkg-config vips-cpp --cflags --libs` -o vips8 -cc
109- benchmark vips8 -cc " ./vips8 -cc $tmp /x.tif $tmp /x2.tif"
105+ g++ vips .cc ` pkg-config vips-cpp --cflags --libs` -o vips -cc
106+ benchmark vips -cc " ./vips -cc $tmp /x.tif $tmp /x2.tif"
110107
111108benchmark vips.js " ./vips.js $tmp /x.tif $tmp /x2.tif"
112109
113- benchmark pyvips2 .py " ./pyvips2 .py $tmp /x.tif $tmp /x2.tif"
110+ benchmark pyvips-bench .py " ./pyvips-bench .py $tmp /x.tif $tmp /x2.tif"
114111
115112benchmark ruby-vips " ./ruby-vips.rb $tmp /x.tif $tmp /x2.tif"
116113
117114gcc -Wall vips.c ` pkg-config vips --cflags --libs` -o vips-c
118115echo -n jpg-
119116benchmark vips-c " ./vips-c $tmp /x.jpg $tmp /x2.jpg"
120117
118+ benchmark pillow " ./pillow.py $tmp /x.tif $tmp /x2.tif"
119+
121120benchmark vips " ./vips.sh $tmp /x.tif $tmp /x2.tif"
122121
123122echo -n ppm-
@@ -133,7 +132,7 @@ benchmark nip2 "./vips.nip2 $tmp/x.tif -o $tmp/x2.tif"
133132# OS X only
134133# benchmark sips "./sips.sh $tmp/x.tif $tmp/x2.tif"
135134
136- benchmark pnm " ./netpbm.sh $tmp /x_strip .tif $tmp /x2.tif"
135+ benchmark pnm " ./netpbm.sh $tmp /x .tif $tmp /x2.tif"
137136
138137benchmark rmagick " ./rmagick.rb $tmp /x.tif $tmp /x2.tif"
139138
@@ -143,13 +142,6 @@ echo -n 1thread-
143142benchmark vips-c " ./vips-c $tmp /x.tif $tmp /x2.tif"
144143unset VIPS_CONCURRENCY
145144
146- # tried pillow-simd with
147- # CC="cc -O3 -march=native" pip install --user --force-reinstall \
148- # --ignore-installed --no-binary :all: pillow-simd
149- # but no faster ... presumably most time is being spent elsewhere
150- # tried with resize LANCZOS, pillow-simd helps a lot
151- benchmark pillow " ./pillow.py $tmp /x.tif $tmp /x2.tif"
152-
153145# this needs careful config, see
154146# https://github.com/jcupitt/vips-bench/issues/4
155147YMAGINE=/home/john/ymagine
@@ -169,7 +161,7 @@ benchmark opencv "./opencv $tmp/x.tif $tmp/x2.tif"
169161
170162benchmark convert " ./im.sh $tmp /x.tif $tmp /x2.tif"
171163
172- benchmark econvert " ./ei.sh $tmp /x_strip .tif $tmp /x2.tif"
164+ benchmark econvert " ./ei.sh $tmp /x .tif $tmp /x2.tif"
173165
174166echo -n jpg-
175167benchmark convert " ./im.sh $tmp /x.jpg $tmp /x2.jpg"
@@ -192,13 +184,12 @@ benchmark gd "./gd $tmp/x.jpg $tmp/x2.jpg"
192184
193185benchmark oiio " ./oiio.sh $tmp /x.tif $tmp /x2.tif"
194186
195- benchmark imagej " imagej -x 1000 -i tmp/x_strip .tif -b bench.ijm"
187+ benchmark imagej " imagej -x 1000 -i tmp/x .tif -b bench.ijm"
196188
197189gcc -Wall gegl.c ` pkg-config gegl-0.3 --cflags --libs` -o gegl
198- echo -n tiff-
199- benchmark gegl " ./gegl $tmp /x.tif $tmp /x2.tif"
200- echo -n strip-tiff-
201- benchmark gegl " ./gegl $tmp /x_strip.tif $tmp /x2.tif"
190+ # gegl-0.3 doesn't have tiff support built in
191+ # echo -n tiff-
192+ # benchmark gegl "./gegl $tmp/x.tif $tmp/x2.tif"
202193echo -n jpg-
203194benchmark gegl " ./gegl $tmp /x.jpg $tmp /x2.jpg"
204195
0 commit comments