diff --git a/benchmark/test_array_allocation.cpp b/benchmark/test_array_allocation.cpp index fb9d6d8bd..05da7ae01 100644 --- a/benchmark/test_array_allocation.cpp +++ b/benchmark/test_array_allocation.cpp @@ -231,6 +231,33 @@ public: } }; +class test3d : public benchmark::test_case +{ +public: + uint32_t size_; + std::vector array_; + test3d(mapnik::parameters const& params) + : test_case(params), + size_(*params.get("size",256*256)), + array_(size_,0) { } + bool validate() const + { + return true; + } + bool operator()() const + { + for (std::size_t i=0;i data(size_); + for (std::size_t i=0;i