Debian Codegraph @

benchmark/run

raw
1 #!/bin/bash
2
3 cd "$( dirname "${BASH_SOURCE[0]}" )"
4 cd ../
5 source ./localize.sh
6
7 BASE=./benchmark/out
8 function run {
9 local runner="$BASE/$1 --log=none"
10 local threads="$2"
11 local iters="$3"
12 shift 3
13 $runner --threads 0 --iterations $iters "$@"
14 if test $threads -gt 0; then
15 $runner --threads $threads --iterations $((iters/threads)) "$@"
16 fi
17 }
18 run test_getline 30 10000000
19 #run test_array_allocation 20 100000
20 #run test_png_encoding1 10 1000
21 #run test_png_encoding2 10 50
22 #run test_to_string1 10 100000
23 #run test_to_string2 10 100000
24 #run test_polygon_clipping 10 1000
25 #run test_polygon_clipping_rendering 10 100
26 run test_proj_transform1 10 100
27 run test_expression_parse 10 10000
28 run test_face_ptr_creation 10 1000
29 run test_font_registration 10 100
30 run test_offset_converter 10 1000
31 #run normalize_angle 0 1000000 --min-duration=0.2
32
33 # commented since this is really slow on travis
34 : '
35 ./benchmark/out/test_rendering \
36 --name "text rendering" \
37 --map benchmark/data/roads.xml \
38 --extent 1477001.12245,6890242.37746,1480004.49012,6892244.62256 \
39 --width 600 \
40 --height 600 \
41 --iterations 20 \
42 --threads 10
43 '
44
45 ./benchmark/out/test_rendering \
46 --name "gdal tiff rendering" \
47 --map benchmark/data/gdal-wgs.xml \
48 --extent -180.0,-120.0,180.0,120.0 \
49 --width 600 \
50 --height 600 \
51 --iterations 20 \
52 --threads 10
53
54 ./benchmark/out/test_rendering \
55 --name "raster tiff rendering" \
56 --map benchmark/data/raster-wgs.xml \
57 --extent -180.0,-120.0,180.0,120.0 \
58 --width 600 \
59 --height 600 \
60 --iterations 20 \
61 --threads 10
62
63 ./benchmark/out/test_quad_tree \
64 --iterations 10000 \
65 --threads 1
66
67 ./benchmark/out/test_quad_tree \
68 --iterations 1000 \
69 --threads 10