From 6ce0828a6f9c74566c4c5f485fabff3704d1c86e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 19 Jun 2014 17:21:57 -0700 Subject: [PATCH] font registration test --- benchmark/test_font_registration.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 benchmark/test_font_registration.cpp 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