proxygen
|
#include <folly/Random.h>
#include <random>
#include <thread>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/container/Foreach.h>
Go to the source code of this file.
Functions | |
BENCHMARK (minstdrand, n) | |
BENCHMARK (mt19937, n) | |
BENCHMARK (threadprng, n) | |
BENCHMARK (RandomDouble) | |
BENCHMARK (Random32) | |
BENCHMARK (Random32Num) | |
BENCHMARK (Random64) | |
BENCHMARK (Random64Num) | |
BENCHMARK (Random64OneIn) | |
int | main (int argc, char **argv) |
BENCHMARK | ( | minstdrand | , |
n | |||
) |
Definition at line 33 of file RandomBenchmark.cpp.
References folly::BenchmarkSuspender::dismiss(), folly::doNotOptimizeAway(), FOR_EACH_RANGE, i, rd, and rng.
BENCHMARK | ( | mt19937 | , |
n | |||
) |
Definition at line 43 of file RandomBenchmark.cpp.
References folly::BENCHMARK(), folly::BenchmarkSuspender::dismiss(), folly::doNotOptimizeAway(), FOR_EACH_RANGE, i, rd, and rng.
BENCHMARK | ( | threadprng | , |
n | |||
) |
Definition at line 65 of file RandomBenchmark.cpp.
References folly::BenchmarkSuspender::dismiss(), folly::doNotOptimizeAway(), FOR_EACH_RANGE, and i.
BENCHMARK | ( | RandomDouble | ) |
Definition at line 75 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::randDouble01().
BENCHMARK | ( | Random32 | ) |
Definition at line 78 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::rand32().
BENCHMARK | ( | Random32Num | ) |
Definition at line 81 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::rand32().
BENCHMARK | ( | Random64 | ) |
Definition at line 84 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::rand64().
BENCHMARK | ( | Random64Num | ) |
Definition at line 87 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::rand64().
BENCHMARK | ( | Random64OneIn | ) |
Definition at line 90 of file RandomBenchmark.cpp.
References folly::doNotOptimizeAway(), and folly::Random::oneIn().
int main | ( | int | argc, |
char ** | argv | ||
) |