| 199 | BENCHMARK(BM_PlainEncodingFloat)->Range(MIN_RANGE, MAX_RANGE); |
| 200 | |
| 201 | static void BM_PlainEncodingFloatNaN(benchmark::State& state) { |
| 202 | std::vector<float> values(state.range(0), nanf("")); |
| 203 | auto encoder = MakeTypedEncoder<FloatType>(Encoding::PLAIN); |
| 204 | for (auto _ : state) { |
| 205 | encoder->Put(values.data(), static_cast<int>(values.size())); |
| 206 | encoder->FlushValues(); |
| 207 | } |
| 208 | state.SetBytesProcessed(state.iterations() * state.range(0) * sizeof(float)); |
| 209 | } |
| 210 | |
| 211 | BENCHMARK(BM_PlainEncodingFloatNaN)->Range(MIN_RANGE, MAX_RANGE); |
| 212 |
nothing calls this directly
no test coverage detected