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

Function ToString

cpp/src/arrow/util/decimal_benchmark.cc:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static void ToString(benchmark::State& state) { // NOLINT non-const reference
70 static const std::vector<DecimalValueAndScale> values = GetDecimalValuesAndScales();
71 for (auto _ : state) {
72 for (const DecimalValueAndScale& item : values) {
73 auto string = item.decimal.ToString(item.scale);
74 benchmark::DoNotOptimize(string);
75 }
76 }
77 state.SetItemsProcessed(state.iterations() * values.size());
78}
79
80constexpr int32_t kValueSize = 12;
81

Callers

nothing calls this directly

Calls 3

ToStringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected