| 158 | BENCHMARK(BM_PlainEncodingDouble)->Range(MIN_RANGE, MAX_RANGE); |
| 159 | |
| 160 | static void BM_PlainEncodingDoubleNaN(benchmark::State& state) { |
| 161 | std::vector<double> values(state.range(0), nan("")); |
| 162 | auto encoder = MakeTypedEncoder<DoubleType>(Encoding::PLAIN); |
| 163 | for (auto _ : state) { |
| 164 | encoder->Put(values.data(), static_cast<int>(values.size())); |
| 165 | encoder->FlushValues(); |
| 166 | } |
| 167 | state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(double)); |
| 168 | } |
| 169 | |
| 170 | BENCHMARK(BM_PlainEncodingDoubleNaN)->Range(MIN_RANGE, MAX_RANGE); |
| 171 |
nothing calls this directly
no test coverage detected