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

Function BM_PlainEncodingDoubleNaN

cpp/src/parquet/encoding_benchmark.cc:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158BENCHMARK(BM_PlainEncodingDouble)->Range(MIN_RANGE, MAX_RANGE);
159
160static void BM_PlainEncodingDoubleNaN(benchmark::State& state) {
161 std::vector<double> values(state.range(0), nan(""));
162 auto encoder = MakeTypedEncoder<DoubleType>(Encoding::PLAIN);
163 for (auto _ : state) {
164 encoder->Put(values.data(), static_cast<int>(values.size()));
165 encoder->FlushValues();
166 }
167 state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(double));
168}
169
170BENCHMARK(BM_PlainEncodingDoubleNaN)->Range(MIN_RANGE, MAX_RANGE);
171

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