#include "bench_framework.hpp" #include class test : public benchmark::test_case { std::string value_; public: test(mapnik::parameters const& params) : test_case(params), value_("123456789") {} bool validate() const { mapnik::value_integer result = 0; if (!mapnik::util::string2int(value_.data(),value_.data()+value_.size(),result)) return false; if (result != 123456789) return false; result = 0; if (!mapnik::util::string2int(value_,result)) return false; if (result != 123456789) return false; return true; } bool operator()() const { for (std::size_t i=0;iint")