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

Function BM_PlainEncodingFloatNaN

cpp/src/parquet/encoding_benchmark.cc:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199BENCHMARK(BM_PlainEncodingFloat)->Range(MIN_RANGE, MAX_RANGE);
200
201static void BM_PlainEncodingFloatNaN(benchmark::State& state) {
202 std::vector<float> values(state.range(0), nanf(""));
203 auto encoder = MakeTypedEncoder<FloatType>(Encoding::PLAIN);
204 for (auto _ : state) {
205 encoder->Put(values.data(), static_cast<int>(values.size()));
206 encoder->FlushValues();
207 }
208 state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(float));
209}
210
211BENCHMARK(BM_PlainEncodingFloatNaN)->Range(MIN_RANGE, MAX_RANGE);
212

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