diff --git a/benchmark/run.cpp b/benchmark/run.cpp index 8964ccdc5..e6069f650 100644 --- a/benchmark/run.cpp +++ b/benchmark/run.cpp @@ -708,6 +708,41 @@ struct test12 } }; +#include + +struct test13 +{ + unsigned iter_; + unsigned threads_; + + test13(unsigned iterations, + unsigned threads) + : iter_(iterations), + threads_(threads) + { + mapnik::freetype_engine::register_fonts("./fonts", true); + } + + bool validate() + { + return true; + } + + void operator()() + { + mapnik::freetype_engine engine; + unsigned long count = 0; + for (unsigned i=0;i 0) { @@ -864,6 +899,10 @@ int main( int argc, char** argv) benchmark(runner,"clipping polygon with mapnik::polygon_clipper"); } + { + test13 runner(1000,10); + benchmark(runner,"create font faces"); + } std::cout << "...benchmark done\n"; return 0; }