• Home
  • Raw
  • Download

Lines Matching refs:Engine

102 template <typename Engine, typename SSeq = PrecompiledSeedSeq>
103 typename absl::enable_if_t<!use_default_initialization<Engine>::value, Engine>
108 return Engine(seq); in make_engine()
111 template <typename Engine, typename SSeq = PrecompiledSeedSeq>
112 typename absl::enable_if_t<use_default_initialization<Engine>::value, Engine>
115 return Engine(); in make_engine()
118 template <typename Engine, typename SSeq>
121 auto rng = make_engine<Engine, SSeq>(); in BM_Construct()
126 template <typename Engine>
128 using value_type = typename Engine::result_type; in BM_Direct()
130 auto rng = make_engine<Engine>(); in BM_Direct()
137 template <typename Engine>
141 using value_type = typename Engine::result_type; in BM_Generate()
143 auto rng = make_engine<Engine>(); in BM_Generate()
149 template <typename Engine, size_t elems>
154 auto rng = make_engine<Engine>(); in BM_Shuffle()
159 template <typename Engine, size_t elems>
163 auto rng = make_engine<Engine>(); in BM_ShuffleReuse()
169 template <typename Engine, typename Dist, typename... Args>
172 auto rng = make_engine<Engine>(); in BM_Dist()
181 template <typename Engine, typename Dist>
186 BM_Dist<Engine, Dist>(state, kMin, kMax); in BM_Large()
189 template <typename Engine, typename Dist>
194 BM_Dist<Engine, Dist>(state, kMin, kMax); in BM_Small()
197 template <typename Engine, typename Dist, int A>
200 BM_Dist<Engine, Dist>(state, a); in BM_Bernoulli()
203 template <typename Engine, typename Dist, int A, int B>
208 BM_Dist<Engine, Dist>(state, a, b); in BM_Beta()
211 template <typename Engine, typename Dist, int A>
215 BM_Dist<Engine, Dist>(state, a); in BM_Gamma()
218 template <typename Engine, typename Dist, int A = 100>
221 BM_Dist<Engine, Dist>(state, a); in BM_Poisson()
224 template <typename Engine, typename Dist, int Q = 2, int V = 1>
229 BM_Dist<Engine, Dist>(state, std::numeric_limits<value_type>::max(), q, v); in BM_Zipf()
232 template <typename Engine, typename Dist>
235 auto rng = make_engine<Engine>(); in BM_Thread()
250 #define BM_BASIC(Engine) \ argument
251 BENCHMARK_TEMPLATE(BM_Construct, Engine, PrecompiledSeedSeq); \
252 BENCHMARK_TEMPLATE(BM_Construct, Engine, std::seed_seq); \
253 BENCHMARK_TEMPLATE(BM_Direct, Engine); \
254 BENCHMARK_TEMPLATE(BM_Shuffle, Engine, 10); \
255 BENCHMARK_TEMPLATE(BM_Shuffle, Engine, 100); \
256 BENCHMARK_TEMPLATE(BM_Shuffle, Engine, 1000); \
257 BENCHMARK_TEMPLATE(BM_ShuffleReuse, Engine, 100); \
258 BENCHMARK_TEMPLATE(BM_ShuffleReuse, Engine, 1000); \
259 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
261 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
263 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::uniform_int_distribution<int32_t>); \
264 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::uniform_int_distribution<int64_t>); \
265 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
267 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
269 BENCHMARK_TEMPLATE(BM_Large, Engine, \
271 BENCHMARK_TEMPLATE(BM_Large, Engine, \
273 BENCHMARK_TEMPLATE(BM_Large, Engine, \
275 BENCHMARK_TEMPLATE(BM_Large, Engine, \
277 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::uniform_real_distribution<float>); \
278 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::uniform_real_distribution<double>); \
279 BENCHMARK_TEMPLATE(BM_Dist, Engine, absl::uniform_real_distribution<float>); \
280 BENCHMARK_TEMPLATE(BM_Dist, Engine, absl::uniform_real_distribution<double>)
282 #define BM_COPY(Engine) BENCHMARK_TEMPLATE(BM_Generate, Engine) argument
284 #define BM_THREAD(Engine) \ argument
285 BENCHMARK_TEMPLATE(BM_Thread, Engine, \
288 BENCHMARK_TEMPLATE(BM_Thread, Engine, \
291 BENCHMARK_TEMPLATE(BM_Shuffle, Engine, 100)->ThreadPerCpu(); \
292 BENCHMARK_TEMPLATE(BM_Shuffle, Engine, 1000)->ThreadPerCpu(); \
293 BENCHMARK_TEMPLATE(BM_ShuffleReuse, Engine, 100)->ThreadPerCpu(); \
294 BENCHMARK_TEMPLATE(BM_ShuffleReuse, Engine, 1000)->ThreadPerCpu();
296 #define BM_EXTENDED(Engine) \ argument
298 BENCHMARK_TEMPLATE(BM_Small, Engine, \
300 BENCHMARK_TEMPLATE(BM_Small, Engine, \
302 BENCHMARK_TEMPLATE(BM_Small, Engine, \
304 BENCHMARK_TEMPLATE(BM_Small, Engine, \
306 BENCHMARK_TEMPLATE(BM_Small, Engine, std::uniform_real_distribution<float>); \
307 BENCHMARK_TEMPLATE(BM_Small, Engine, \
309 BENCHMARK_TEMPLATE(BM_Small, Engine, \
311 BENCHMARK_TEMPLATE(BM_Small, Engine, \
314 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::normal_distribution<double>); \
315 BENCHMARK_TEMPLATE(BM_Dist, Engine, absl::gaussian_distribution<double>); \
316 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::exponential_distribution<double>); \
317 BENCHMARK_TEMPLATE(BM_Dist, Engine, absl::exponential_distribution<double>); \
318 BENCHMARK_TEMPLATE(BM_Poisson, Engine, std::poisson_distribution<int64_t>, \
320 BENCHMARK_TEMPLATE(BM_Poisson, Engine, absl::poisson_distribution<int64_t>, \
322 BENCHMARK_TEMPLATE(BM_Poisson, Engine, std::poisson_distribution<int64_t>, \
324 BENCHMARK_TEMPLATE(BM_Poisson, Engine, absl::poisson_distribution<int64_t>, \
326 BENCHMARK_TEMPLATE(BM_Poisson, Engine, std::poisson_distribution<int64_t>, \
328 BENCHMARK_TEMPLATE(BM_Poisson, Engine, absl::poisson_distribution<int64_t>, \
330 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
332 BENCHMARK_TEMPLATE(BM_Dist, Engine, \
334 BENCHMARK_TEMPLATE(BM_Dist, Engine, std::geometric_distribution<int64_t>); \
335 BENCHMARK_TEMPLATE(BM_Zipf, Engine, absl::zipf_distribution<uint64_t>); \
336 BENCHMARK_TEMPLATE(BM_Zipf, Engine, absl::zipf_distribution<uint64_t>, 2, \
338 BENCHMARK_TEMPLATE(BM_Bernoulli, Engine, std::bernoulli_distribution, \
340 BENCHMARK_TEMPLATE(BM_Bernoulli, Engine, absl::bernoulli_distribution, \
342 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<double>, 65, \
344 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<double>, 99, \
346 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<double>, 150, \
348 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<double>, 410, \
350 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<float>, 65, 41); \
351 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<float>, 99, \
353 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<float>, 150, \
355 BENCHMARK_TEMPLATE(BM_Beta, Engine, absl::beta_distribution<float>, 410, \
357 BENCHMARK_TEMPLATE(BM_Gamma, Engine, std::gamma_distribution<float>, 199); \
358 BENCHMARK_TEMPLATE(BM_Gamma, Engine, std::gamma_distribution<double>, 199);