| 146 | BENCHMARK(BM_PlainDecodingInt64)->Range(MIN_RANGE, MAX_RANGE); |
| 147 | |
| 148 | static 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 | |
| 158 | BENCHMARK(BM_PlainEncodingDouble)->Range(MIN_RANGE, MAX_RANGE); |
| 159 |
nothing calls this directly
no test coverage detected