Skip to content

Commit 0acfc90

Browse files
andreas-abelcopybara-github
authored andcommitted
Change batch sizes in BM_SWISSMAP_IntDestructor
PiperOrigin-RevId: 745148888 Change-Id: If120a92b070d0ccdc3e4952e7f3c66f5be7a4941
1 parent 38d80f9 commit 0acfc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fleetbench/swissmap/hot_swissmap_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ ABSL_ATTRIBUTE_NOINLINE void FillInts(IntTable* t, int n) {
480480
void BM_SWISSMAP_IntDestructor(benchmark::State& state) {
481481
int size = state.range(0);
482482
int capacity = state.range(1);
483-
size_t batch_size = 2048 / (capacity + 1) + 1;
483+
size_t batch_size = (capacity <= 1) ? 8196 : 512;
484484
while (state.KeepRunningBatch(batch_size)) {
485485
state.PauseTiming();
486486
std::vector<IntTable> tables(batch_size);

0 commit comments

Comments
 (0)