diff --git a/benchmark/test_array_allocation.cpp b/benchmark/test_array_allocation.cpp index fe785b6a6..fb9d6d8bd 100644 --- a/benchmark/test_array_allocation.cpp +++ b/benchmark/test_array_allocation.cpp @@ -1,6 +1,7 @@ #include "bench_framework.hpp" #include #include +#include #include #include #include @@ -203,6 +204,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