| 187 | BENCHMARK(BM_PlainDecodingDouble)->Range(MIN_RANGE, MAX_RANGE); |
| 188 | |
| 189 | static void BM_PlainEncodingFloat(benchmark::State& state) { |
| 190 | std::vector<float> values(state.range(0), 64.0); |
| 191 | auto encoder = MakeTypedEncoder<FloatType>(Encoding::PLAIN); |
| 192 | for (auto _ : state) { |
| 193 | encoder->Put(values.data(), static_cast<int>(values.size())); |
| 194 | encoder->FlushValues(); |
| 195 | } |
| 196 | state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(float)); |
| 197 | } |
| 198 | |
| 199 | BENCHMARK(BM_PlainEncodingFloat)->Range(MIN_RANGE, MAX_RANGE); |
| 200 |
nothing calls this directly
no test coverage detected