| 130 | } |
| 131 | |
| 132 | static void SchemaEquals(benchmark::State& state) { // NOLINT non-const reference |
| 133 | auto schemas = SampleSchemas(); |
| 134 | |
| 135 | auto schema1 = schemas[0]; |
| 136 | auto schema2 = schemas[1]; |
| 137 | auto schema3 = schemas[2]; |
| 138 | |
| 139 | int64_t total = 0; |
| 140 | for (auto _ : state) { |
| 141 | total += schema1->Equals(*schema2, /*check_metadata =*/false); |
| 142 | total += schema1->Equals(*schema3, /*check_metadata =*/false); |
| 143 | } |
| 144 | benchmark::DoNotOptimize(total); |
| 145 | state.SetItemsProcessed(state.iterations() * 2); |
| 146 | } |
| 147 | |
| 148 | static void SchemaEqualsWithMetadata( |
| 149 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected