MCPcopy Create free account
hub / github.com/apache/arrow / BinaryMathOpMultiply128

Function BinaryMathOpMultiply128

cpp/src/arrow/util/decimal_benchmark.cc:162–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static void BinaryMathOpMultiply128(
163 benchmark::State& state) { // NOLINT non-const reference
164 std::vector<BasicDecimal128> v1, v2;
165 for (int x = 0; x < kValueSize; x++) {
166 v1.emplace_back(100 + x, 100 + x);
167 v2.emplace_back(200 + x, 200 + x);
168 }
169
170 for (auto _ : state) {
171 for (int x = 0; x < kValueSize; ++x) {
172 auto multiply = v1[x] * v2[x];
173 benchmark::DoNotOptimize(multiply);
174 }
175 }
176 state.SetItemsProcessed(state.iterations() * kValueSize);
177}
178
179static void BinaryMathOpDivide128(
180 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected