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

Function ErrorSchemeNoError

cpp/src/arrow/type_benchmark.cc:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256static void ErrorSchemeNoError(benchmark::State& state) { // NOLINT non-const reference
257 auto integers = RandomIntegers();
258
259 for (auto _ : state) {
260 int64_t total = 0;
261 for (const auto v : integers) {
262 total = Accumulate(total, NoError(v));
263 }
264 benchmark::DoNotOptimize(total);
265 }
266
267 state.SetItemsProcessed(state.iterations() * integers.size());
268}
269
270static void ErrorSchemeNoErrorNoInline(
271 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

RandomIntegersFunction · 0.85
AccumulateFunction · 0.85
NoErrorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected