| 300 | } |
| 301 | |
| 302 | static void ErrorSchemeBoolNoInline( |
| 303 | benchmark::State& state) { // NOLINT non-const reference |
| 304 | auto integers = RandomIntegers(); |
| 305 | |
| 306 | for (auto _ : state) { |
| 307 | int64_t total = 0; |
| 308 | for (const auto v : integers) { |
| 309 | auto pair = ErrorAsBoolNoInline(v); |
| 310 | if (!ARROW_PREDICT_FALSE(pair.first)) { |
| 311 | total = Accumulate(total, pair.second); |
| 312 | } |
| 313 | } |
| 314 | benchmark::DoNotOptimize(total); |
| 315 | } |
| 316 | |
| 317 | state.SetItemsProcessed(state.iterations() * integers.size()); |
| 318 | } |
| 319 | |
| 320 | static void ErrorSchemeStatus(benchmark::State& state) { // NOLINT non-const reference |
| 321 | auto integers = RandomIntegers(); |
nothing calls this directly
no test coverage detected