Skip to content

Commit 0d6d7cf

Browse files
andreas-abelcopybara-github
authored andcommitted
Change batch sizes in BM_SWISSMAP_StrDestructor
PiperOrigin-RevId: 745624048 Change-Id: I7f76c74e64e1cb919368bb690684b9bc90664f76
1 parent 7a9dad0 commit 0d6d7cf

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
@@ -506,7 +506,7 @@ ABSL_ATTRIBUTE_NOINLINE void FillStrings(StrTable* t, int n) {
506506
void BM_SWISSMAP_StrDestructor(benchmark::State& state) {
507507
int size = state.range(0);
508508
int capacity = state.range(1);
509-
size_t batch_size = 2048 / (capacity + 1) + 1;
509+
size_t batch_size = (capacity == 0) ? 16384 : (capacity <= 7) ? 512 : 128;
510510
while (state.KeepRunningBatch(batch_size)) {
511511
state.PauseTiming();
512512
std::vector<StrTable> tables(batch_size);

0 commit comments

Comments
 (0)