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

Function BM_PlainEncodingDouble

cpp/src/parquet/encoding_benchmark.cc:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146BENCHMARK(BM_PlainDecodingInt64)->Range(MIN_RANGE, MAX_RANGE);
147
148static void BM_PlainEncodingDouble(benchmark::State& state) {
149 std::vector<double> values(state.range(0), 64.0);
150 auto encoder = MakeTypedEncoder<DoubleType>(Encoding::PLAIN);
151 for (auto _ : state) {
152 encoder->Put(values.data(), static_cast<int>(values.size()));
153 encoder->FlushValues();
154 }
155 state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(double));
156}
157
158BENCHMARK(BM_PlainEncodingDouble)->Range(MIN_RANGE, MAX_RANGE);
159

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