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

Function SetBytesProcessed

cpp/src/parquet/column_io_benchmark.cc:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void SetBytesProcessed(::benchmark::State& state, Repetition::type repetition) {
58 int64_t num_values = state.iterations() * state.range(0);
59 int64_t bytes_processed = num_values * sizeof(int64_t);
60 if (repetition != Repetition::REQUIRED) {
61 bytes_processed += num_values * sizeof(int16_t);
62 }
63 if (repetition == Repetition::REPEATED) {
64 bytes_processed += num_values * sizeof(int16_t);
65 }
66 state.SetBytesProcessed(bytes_processed);
67 state.SetItemsProcessed(num_values);
68}
69
70static void BM_WriteInt64Column(::benchmark::State& state, Repetition::type repetition,
71 Compression::type codec, Encoding::type encoding) {

Callers 2

BM_WriteInt64ColumnFunction · 0.70
BM_ReadInt64ColumnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected