#include "bench_framework.hpp" #include #include class test : public benchmark::test_case { public: test(mapnik::parameters const& params) : test_case(params) {} bool validate() const { std::size_t count = 0; std::size_t expected_count = mapnik::freetype_engine::face_names().size(); mapnik::freetype_engine engine; for (std::string const& name : mapnik::freetype_engine::face_names()) { mapnik::face_ptr f = engine.create_face(name); if (f) ++count; } return count == expected_count; } void operator()() const { mapnik::freetype_engine engine; std::size_t expected_count = mapnik::freetype_engine::face_names().size(); for (unsigned i=0;i