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