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

Function BM_RowArray_DecodeBinary

cpp/src/arrow/acero/hash_join_benchmark.cc:725–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723 ->ArgsProduct({{3, 5, 6, 7, 9, 16, 42}});
724
725static void BM_RowArray_DecodeBinary(benchmark::State& st) {
726 int max_length = static_cast<int>(st.range(0));
727 std::unordered_map<std::string, std::string> metadata;
728 metadata["max_length"] = std::to_string(max_length);
729 SchemaBuilder schema_builder;
730 DCHECK_OK(schema_builder.AddField(field("", utf8(), key_value_metadata(metadata))));
731 auto schema = *schema_builder.Finish();
732 RowArrayDecodeBenchmark(st, schema, 0);
733}
734
735BENCHMARK(BM_RowArray_DecodeBinary)
736 ->ArgNames({"max_length"})

Callers

nothing calls this directly

Calls 6

to_stringFunction · 0.85
key_value_metadataFunction · 0.85
RowArrayDecodeBenchmarkFunction · 0.85
fieldFunction · 0.50
AddFieldMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected