MCPcopy Create free account
hub / github.com/apache/arrow / SchemaEquals

Function SchemaEquals

cpp/src/arrow/type_benchmark.cc:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static 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
148static void SchemaEqualsWithMetadata(
149 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 2

SampleSchemasFunction · 0.85
EqualsMethod · 0.45

Tested by

no test coverage detected