Skip to content

Commit a4546d8

Browse files
committed
Adjust batch size and run for a few container sizes
1 parent 658cd30 commit a4546d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/benchmarks/containers/associative/associative_container_benchmarks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ void associative_container_benchmarks(std::string container) {
5555
auto get_key = [](Value const& v) { return adapt_operations<Container>::key_from_value(v); };
5656

5757
auto bench = [&](std::string operation, auto f) {
58-
benchmark::RegisterBenchmark(container + "::" + operation, f)->Arg(1024);
58+
benchmark::RegisterBenchmark(container + "::" + operation, f)->Arg(32)->Arg(1024)->Arg(8192);
5959
};
6060

6161
// These benchmarks are structured to perform the operation being benchmarked
6262
// a small number of times at each iteration, in order to offset the cost of
6363
// PauseTiming() and ResumeTiming().
64-
static constexpr std::size_t BatchSize = 10;
64+
static constexpr std::size_t BatchSize = 32;
6565

6666
struct alignas(Container) ScratchSpace {
6767
char storage[sizeof(Container)];

0 commit comments

Comments
 (0)