7 #include "benchmark/benchmark.h"
9 #include "ContainerBenchmarks.h"
10 #include "GenerateInput.h"
12 using namespace ContainerBenchmarks
;
14 constexpr std::size_t TestNumInputs
= 1024;
16 BENCHMARK_CAPTURE(BM_ConstructSize
,
18 std::vector
<unsigned char>{})->Arg(5140480);
20 BENCHMARK_CAPTURE(BM_ConstructSizeValue
,
22 std::vector
<unsigned char>{}, 0)->Arg(5140480);
24 BENCHMARK_CAPTURE(BM_ConstructIterIter
,
27 getRandomIntegerInputs
<char>)->Arg(TestNumInputs
);
29 BENCHMARK_CAPTURE(BM_ConstructIterIter
,
31 std::vector
<size_t>{},
32 getRandomIntegerInputs
<size_t>)->Arg(TestNumInputs
);
34 BENCHMARK_CAPTURE(BM_ConstructIterIter
,
36 std::vector
<std::string
>{},
37 getRandomStringInputs
)->Arg(TestNumInputs
);