| 38 | namespace arrow { |
| 39 | |
| 40 | static void TypeEqualsSimple(benchmark::State& state) { // NOLINT non-const reference |
| 41 | auto a = uint8(); |
| 42 | auto b = uint8(); |
| 43 | auto c = float64(); |
| 44 | |
| 45 | int64_t total = 0; |
| 46 | for (auto _ : state) { |
| 47 | total += a->Equals(*b); |
| 48 | total += a->Equals(*c); |
| 49 | } |
| 50 | benchmark::DoNotOptimize(total); |
| 51 | state.SetItemsProcessed(state.iterations() * 2); |
| 52 | } |
| 53 | |
| 54 | static void TypeEqualsComplex(benchmark::State& state) { // NOLINT non-const reference |
| 55 | auto fa1 = field("as", list(float16())); |