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

Function BM_PlainEncodingInt64

cpp/src/parquet/encoding_benchmark.cc:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117BENCHMARK(BM_PlainDecodingBooleanToBitmap)->Range(MIN_RANGE, MAX_RANGE);
118
119static void BM_PlainEncodingInt64(benchmark::State& state) {
120 std::vector<int64_t> values(state.range(0), 64);
121 auto encoder = MakeTypedEncoder<Int64Type>(Encoding::PLAIN);
122 for (auto _ : state) {
123 encoder->Put(values.data(), static_cast<int>(values.size()));
124 encoder->FlushValues();
125 }
126 state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(int64_t));
127}
128
129BENCHMARK(BM_PlainEncodingInt64)->Range(MIN_RANGE, MAX_RANGE);
130

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