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

Function TypeEqualsSimple

cpp/src/arrow/type_benchmark.cc:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace arrow {
39
40static 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
54static void TypeEqualsComplex(benchmark::State& state) { // NOLINT non-const reference
55 auto fa1 = field("as", list(float16()));

Callers

nothing calls this directly

Calls 1

EqualsMethod · 0.45

Tested by

no test coverage detected