| 314 | } |
| 315 | |
| 316 | static void ErrorSchemeBoolNoInline( |
| 317 | benchmark::State& state) { // NOLINT non-const reference |
| 318 | auto integers = RandomIntegers(); |
| 319 | |
| 320 | for (auto _ : state) { |
| 321 | int64_t total = 0; |
| 322 | for (const auto v : integers) { |
| 323 | auto pair = ErrorAsBoolNoInline(v); |
| 324 | if (!ARROW_PREDICT_FALSE(pair.first)) { |
| 325 | total = Accumulate(total, pair.second); |
| 326 | } |
| 327 | } |
| 328 | benchmark::DoNotOptimize(total); |
| 329 | } |
| 330 | |
| 331 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 332 | } |
| 333 | |
| 334 | static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference |
| 335 | auto integers = RandomIntegers(); |
nothing calls this directly
no test coverage detected