@@ -56,6 +56,7 @@ constexpr int64_t kRounds = 256;
56
56
static VectorType kData = AlmostU8CompressibleVector();
57
57
constexpr int64_t kBytesProcessPerRound = kNumberOfElements * sizeof (ValueType);
58
58
constexpr int64_t kBytesProcessed = kRounds * kBytesProcessPerRound ;
59
+ constexpr int64_t kItemsProcessed = kRounds * kNumberOfElements ;
59
60
60
61
static const char * kBinaryString = " 12345678" ;
61
62
static std::string_view kBinaryView (kBinaryString );
@@ -73,6 +74,7 @@ static void BuildIntArrayNoNulls(benchmark::State& state) { // NOLINT non-const
73
74
}
74
75
75
76
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
77
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
76
78
}
77
79
78
80
static void BuildAdaptiveIntNoNulls (
@@ -89,6 +91,7 @@ static void BuildAdaptiveIntNoNulls(
89
91
}
90
92
91
93
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
94
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
92
95
}
93
96
94
97
static void BuildAdaptiveIntNoNullsScalarAppend (
@@ -107,6 +110,7 @@ static void BuildAdaptiveIntNoNullsScalarAppend(
107
110
}
108
111
109
112
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
113
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
110
114
}
111
115
112
116
static void BuildBooleanArrayNoNulls (
@@ -127,6 +131,7 @@ static void BuildBooleanArrayNoNulls(
127
131
}
128
132
129
133
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
134
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
130
135
}
131
136
132
137
static void BuildBinaryArray (benchmark::State& state) { // NOLINT non-const reference
@@ -142,6 +147,7 @@ static void BuildBinaryArray(benchmark::State& state) { // NOLINT non-const ref
142
147
}
143
148
144
149
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
150
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
145
151
}
146
152
147
153
static void BuildChunkedBinaryArray (
@@ -161,6 +167,7 @@ static void BuildChunkedBinaryArray(
161
167
}
162
168
163
169
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
170
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
164
171
}
165
172
166
173
static void BuildFixedSizeBinaryArray (
@@ -179,6 +186,7 @@ static void BuildFixedSizeBinaryArray(
179
186
}
180
187
181
188
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
189
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
182
190
}
183
191
184
192
static void BuildDecimalArray (benchmark::State& state) { // NOLINT non-const reference
@@ -199,6 +207,7 @@ static void BuildDecimalArray(benchmark::State& state) { // NOLINT non-const re
199
207
}
200
208
201
209
state.SetBytesProcessed (state.iterations () * kRounds * kNumberOfElements * 16 );
210
+ state.SetItemsProcessed (state.iterations () * kRounds * kNumberOfElements );
202
211
}
203
212
204
213
// ----------------------------------------------------------------------
@@ -317,6 +326,7 @@ static void BenchmarkDictionaryArray(
317
326
fodder_nbytes = fodder.size () * sizeof (Scalar);
318
327
}
319
328
state.SetBytesProcessed (state.iterations () * fodder_nbytes * kRounds );
329
+ state.SetItemsProcessed (state.iterations () * fodder.size () * kRounds );
320
330
}
321
331
322
332
static void BuildInt64DictionaryArrayRandom (
@@ -361,6 +371,7 @@ static void ArrayDataConstructDestruct(
361
371
InitArrays ();
362
372
arrays.clear ();
363
373
}
374
+ state.SetItemsProcessed (state.iterations () * kNumArrays );
364
375
}
365
376
366
377
// ----------------------------------------------------------------------
@@ -430,6 +441,7 @@ static void ReferenceBuildVectorNoNulls(
430
441
}
431
442
432
443
state.SetBytesProcessed (state.iterations () * kBytesProcessed );
444
+ state.SetItemsProcessed (state.iterations () * kItemsProcessed );
433
445
}
434
446
435
447
BENCHMARK (ReferenceBuildVectorNoNulls);
0 commit comments