Skip to content

Commit 936e620

Browse files
committed
update for latest
1 parent 23c803b commit 936e620

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

benchmark.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ get_time() {
6464
get_mem() {
6565
name=$1
6666
cmd=$2
67+
user=$(whoami)
6768

6869
rm -f $tmp/vipsbench.lock
6970
(while [ ! -f $tmp/vipsbench.lock ]; do
70-
ps u
71+
ps u -u $user
7172
sleep 0.01
7273
done | ./parse-ps.rb "$name" > "$name.csv") &
7374
$cmd
@@ -146,6 +147,9 @@ benchmark pnm "./netpbm.sh $tmp/x_strip.tif $tmp/x2.tif"
146147

147148
benchmark convert "./im.sh $tmp/x.tif $tmp/x2.tif"
148149

150+
echo -n jpg-
151+
benchmark convert "./im.sh $tmp/x.jpg $tmp/x2.jpg"
152+
149153
gcc -Wall vips.c `pkg-config vips --cflags --libs` -o vips-c
150154
export VIPS_CONCURRENCY=1
151155
echo -n 1thread-
@@ -197,8 +201,7 @@ benchmark gegl "./gegl $tmp/x_strip.tif $tmp/x2.tif"
197201
echo -n jpg-
198202
benchmark gegl "./gegl $tmp/x.jpg $tmp/x2.jpg"
199203

200-
# octave image load is broken in 15.10
201-
# benchmark ./octave.m $tmp/x.tif $tmp/x2.tif
204+
benchmark octave "./octave.m $tmp/x.tif $tmp/x2.tif"
202205

203206
./combine.rb *.csv > memtrace.csv
204207

octave.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/octave -qf
22

3-
% this segvs for me on (amost) any image, strange
3+
% we see some annoying warnings from GM without this
4+
warning("off")
45

56
pkg load image
67

vips.nip2

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ main
55
= (sharpen @ shrink @ crop ) (Image_file argv?1)
66
{
77
crop x = extract_area 100 100 (x.width - 200) (x.height - 200) x;
8-
shrink = resize Interpolate_bilinear 0.9 0.9;
8+
shrink = resize Kernel_linear 0.9 0.9;
99
sharpen = conv (Matrix_con 8 0 [[-1, -1, -1], [-1, 16, -1], [-1, -1, -1]]);
1010
}

vips8.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import sys
44

5+
import gi
6+
gi.require_version('Vips', '8.0')
57
from gi.repository import Vips
68

79
im = Vips.Image.new_from_file(sys.argv[1])

0 commit comments

Comments
 (0)