diff --git a/benchmark/test_font_registration.cpp b/benchmark/test_font_registration.cpp new file mode 100644 index 000000000..2c57ac328 --- /dev/null +++ b/benchmark/test_font_registration.cpp @@ -0,0 +1,26 @@ +#include "bench_framework.hpp" +#include +#include +#include + +class test : public benchmark::test_case +{ +public: + test(mapnik::parameters const& params) + : test_case(params) {} + bool validate() const + { + return mapnik::freetype_engine::register_fonts("./fonts", true); + } + void operator()() const + { + unsigned long count = 0; + for (unsigned i=0;i