| 68 | } |
| 69 | |
| 70 | static void DetectUIntWidthNulls(benchmark::State& state) { // NOLINT non-const reference |
| 71 | const auto values = GetUIntSequence(0x12345); |
| 72 | const auto valid_bytes = GetValidBytes(0x12345); |
| 73 | |
| 74 | while (state.KeepRunning()) { |
| 75 | auto result = DetectUIntWidth(values.data(), valid_bytes.data(), |
| 76 | static_cast<int64_t>(values.size())); |
| 77 | benchmark::DoNotOptimize(result); |
| 78 | } |
| 79 | state.SetBytesProcessed(state.iterations() * values.size() * sizeof(uint64_t)); |
| 80 | state.SetItemsProcessed(state.iterations() * values.size()); |
| 81 | } |
| 82 | |
| 83 | static void DetectIntWidthNoNulls( |
| 84 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected