1 #include <vector> 2 #include <functional> 3 #include <cstdint> 4 #include <cstdlib> 5 #include <cstring> 6 7 #include "benchmark/benchmark.h" 8 9 #include "ContainerBenchmarks.hpp" 10 #include "GenerateInput.hpp" 11 12 using namespace ContainerBenchmarks; 13 14 constexpr std::size_t TestNumInputs = 1024; 15 16 BENCHMARK_CAPTURE(BM_ConstructIterIter, 17 vector_char, 18 std::vector<char>{}, 19 getRandomIntegerInputs<char>)->Arg(TestNumInputs); 20 21 BENCHMARK_CAPTURE(BM_ConstructIterIter, 22 vector_size_t, 23 std::vector<size_t>{}, 24 getRandomIntegerInputs<size_t>)->Arg(TestNumInputs); 25 26 BENCHMARK_CAPTURE(BM_ConstructIterIter, 27 vector_string, 28 std::vector<std::string>{}, 29 getRandomStringInputs)->Arg(TestNumInputs); 30 31 32 BENCHMARK_MAIN(); 33