| 43 | // const int seed = std::rand(); |
| 44 | |
| 45 | static std::shared_ptr<Buffer> CreateRandomBuffer(int64_t nbytes) { |
| 46 | auto buffer = *AllocateBuffer(nbytes); |
| 47 | memset(buffer->mutable_data(), 0, nbytes); |
| 48 | random_bytes(nbytes, /*seed=*/0, buffer->mutable_data()); |
| 49 | return buffer; |
| 50 | } |
| 51 | |
| 52 | static void BitBlockCounterBench(benchmark::State& state) { |
| 53 | int64_t nbytes = state.range(0); |
no test coverage detected