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

Function BM_PlainEncodingFloat

cpp/src/parquet/encoding_benchmark.cc:189–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187BENCHMARK(BM_PlainDecodingDouble)->Range(MIN_RANGE, MAX_RANGE);
188
189static void BM_PlainEncodingFloat(benchmark::State& state) {
190 std::vector<float> values(state.range(0), 64.0);
191 auto encoder = MakeTypedEncoder<FloatType>(Encoding::PLAIN);
192 for (auto _ : state) {
193 encoder->Put(values.data(), static_cast<int>(values.size()));
194 encoder->FlushValues();
195 }
196 state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(float));
197}
198
199BENCHMARK(BM_PlainEncodingFloat)->Range(MIN_RANGE, MAX_RANGE);
200

Callers

nothing calls this directly

Calls 4

PutMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
FlushValuesMethod · 0.45

Tested by

no test coverage detected