| 254 | BENCHMARK(BM_CreateAndSetWeights)->Range(1, 1024); |
| 255 | |
| 256 | static void BM_Pick(int iters, int arg) { |
| 257 | PhiloxRandom philox(301, 17); |
| 258 | SimplePhilox rnd(&philox); |
| 259 | WeightedPicker p(arg); |
| 260 | int result = 0; |
| 261 | while (--iters > 0) { |
| 262 | result += p.Pick(&rnd); |
| 263 | } |
| 264 | VLOG(4) << result; // Dummy use |
| 265 | } |
| 266 | BENCHMARK(BM_Pick)->Range(1, 1024); |
| 267 | |
| 268 | } // namespace random |