mapnik/benchmark/run

20 lines
499 B
Text
Raw Normal View History

2013-11-19 13:21:00 -08:00
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd ../
BASE=./benchmark/out
function run {
${BASE}/$1 --threads 0 --iterations $3;
${BASE}/$1 --threads $2 --iterations $(expr $3 / $2);
}
run test_png_encoding1 10 1000
run test_png_encoding2 10 50
run test_to_string1 10 100000
run test_to_string2 10 100000
run test_proj_transform1 10 100
run test_expression_parse 10 10000
2013-11-19 12:23:37 -08:00
run test_face_ptr_creation 10 10000
run test_polygon_clipping 10 1000
run test_polygon_clipping_rendering 10 100