|
proxygen
|
#include <folly/Benchmark.h>#include <folly/String.h>#include <folly/container/Foreach.h>#include <algorithm>#include <iostream>#include <numeric>#include <random>#include <vector>Go to the source code of this file.
Functions | |
| void | fun () |
| BENCHMARK (bmFun) | |
| BENCHMARK (bmRepeatedFun, n) | |
| BENCHMARK_DRAW_LINE () | |
| BENCHMARK (gun) | |
| BENCHMARK (optimizerCanDiscardTrivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner1Trivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner2Trivial, n) | |
| BENCHMARK (optimizerDisabled1Trivial, n) | |
| BENCHMARK (optimizerDisabled2Trivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner1TrivialPtr, n) | |
| BENCHMARK (optimizerCanPowerReduceInner2TrivialPtr, n) | |
| BENCHMARK (optimizerDisabled1TrivialPtr, n) | |
| BENCHMARK (optimizerCanDiscardNonTrivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner1NonTrivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner2NonTrivial, n) | |
| BENCHMARK (optimizerDisabled1NonTrivial, n) | |
| BENCHMARK (optimizerDisabled2NonTrivial, n) | |
| BENCHMARK (optimizerCanPowerReduceInner1NonTrivialPtr, n) | |
| BENCHMARK (optimizerCanPowerReduceInner2NonTrivialPtr, n) | |
| BENCHMARK (optimizerDisabled1NonTrivialPtr, n) | |
| BENCHMARK (baselinevector) | |
| BENCHMARK_RELATIVE (bmVector) | |
| BENCHMARK (superslow) | |
| BENCHMARK (noMulti) | |
| BENCHMARK_MULTI (multiSimple) | |
| BENCHMARK_RELATIVE_MULTI (multiSimpleRel) | |
| BENCHMARK_MULTI (multiIterArgs, iter) | |
| BENCHMARK_RELATIVE_MULTI (multiIterArgsRel, iter) | |
| unsigned | paramMulti (unsigned iter, unsigned num) |
| unsigned | paramMultiRel (unsigned iter, unsigned num) |
| BENCHMARK (BenchmarkSuspender_dismissing_void, iter) | |
| BENCHMARK (BenchmarkSuspender_dismissing_value, iter) | |
| int | main (int argc, char **argv) |
| BENCHMARK | ( | bmFun | ) |
Definition at line 33 of file BenchmarkTest.cpp.
References fun().
| BENCHMARK | ( | bmRepeatedFun | , |
| n | |||
| ) |
Definition at line 36 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), FOR_EACH_RANGE, fun(), and i.
| BENCHMARK | ( | gun | ) |
Definition at line 41 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), and folly::doNotOptimizeAway().
| BENCHMARK | ( | optimizerCanDiscardTrivial | , |
| n | |||
| ) |
| BENCHMARK | ( | optimizerCanPowerReduceInner1Trivial | , |
| n | |||
| ) |
Definition at line 58 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), and i.
| BENCHMARK | ( | optimizerCanPowerReduceInner2Trivial | , |
| n | |||
| ) |
Definition at line 68 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and folly::makeUnpredictable().
| BENCHMARK | ( | optimizerDisabled1Trivial | , |
| n | |||
| ) |
Definition at line 79 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), and i.
| BENCHMARK | ( | optimizerDisabled2Trivial | , |
| n | |||
| ) |
Definition at line 89 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and folly::makeUnpredictable().
| BENCHMARK | ( | optimizerCanPowerReduceInner1TrivialPtr | , |
| n | |||
| ) |
Definition at line 101 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), and i.
| BENCHMARK | ( | optimizerCanPowerReduceInner2TrivialPtr | , |
| n | |||
| ) |
Definition at line 111 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and folly::makeUnpredictable().
| BENCHMARK | ( | optimizerDisabled1TrivialPtr | , |
| n | |||
| ) |
Definition at line 122 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, folly::operator+(), folly::operator+=(), folly::operator<(), and folly::detail::rhs.
| BENCHMARK | ( | optimizerCanDiscardNonTrivial | , |
| n | |||
| ) |
Definition at line 160 of file BenchmarkTest.cpp.
| BENCHMARK | ( | optimizerCanPowerReduceInner1NonTrivial | , |
| n | |||
| ) |
Definition at line 169 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and x.
| BENCHMARK | ( | optimizerCanPowerReduceInner2NonTrivial | , |
| n | |||
| ) |
Definition at line 179 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, folly::makeUnpredictable(), and x.
| BENCHMARK | ( | optimizerDisabled1NonTrivial | , |
| n | |||
| ) |
Definition at line 190 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and x.
| BENCHMARK | ( | optimizerDisabled2NonTrivial | , |
| n | |||
| ) |
Definition at line 200 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, folly::makeUnpredictable(), and x.
| BENCHMARK | ( | optimizerCanPowerReduceInner1NonTrivialPtr | , |
| n | |||
| ) |
Definition at line 212 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, and x.
| BENCHMARK | ( | optimizerCanPowerReduceInner2NonTrivialPtr | , |
| n | |||
| ) |
Definition at line 222 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), i, folly::makeUnpredictable(), and x.
| BENCHMARK | ( | optimizerDisabled1NonTrivialPtr | , |
| n | |||
| ) |
Definition at line 233 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), i, and x.
| BENCHMARK | ( | baselinevector | ) |
Definition at line 245 of file BenchmarkTest.cpp.
References BENCHMARK_SUSPEND, FOR_EACH_RANGE, i, and v.
| BENCHMARK | ( | superslow | ) |
Definition at line 262 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), and folly::futures::sleep().
| BENCHMARK | ( | noMulti | ) |
Definition at line 268 of file BenchmarkTest.cpp.
References fun().
| BENCHMARK | ( | BenchmarkSuspender_dismissing_void | , |
| iter | |||
| ) |
Definition at line 325 of file BenchmarkTest.cpp.
References folly::BenchmarkSuspender::dismissing(), rng, and v.
| BENCHMARK | ( | BenchmarkSuspender_dismissing_value | , |
| iter | |||
| ) |
Definition at line 336 of file BenchmarkTest.cpp.
References a, folly::f14::accumulate(), folly::BenchmarkSuspender::dismissing(), folly::doNotOptimizeAway(), rng, s, and v.
| BENCHMARK_DRAW_LINE | ( | ) |
| BENCHMARK_MULTI | ( | multiSimple | ) |
| BENCHMARK_MULTI | ( | multiIterArgs | , |
| iter | |||
| ) |
| BENCHMARK_RELATIVE | ( | bmVector | ) |
Definition at line 255 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), FOR_EACH_RANGE, i, and v.
| BENCHMARK_RELATIVE_MULTI | ( | multiSimpleRel | ) |
| BENCHMARK_RELATIVE_MULTI | ( | multiIterArgsRel | , |
| iter | |||
| ) |
| void fun | ( | ) |
Definition at line 28 of file BenchmarkTest.cpp.
References folly::doNotOptimizeAway(), and x.
Referenced by BENCHMARK(), BENCHMARK_MULTI(), BENCHMARK_RELATIVE_MULTI(), folly::Function< std::vector< ResultT >(std::vector< InputT > &&)>::Function(), folly::getGlobalBenchmarkBaselineIndex(), folly::lazy(), folly::Function< std::vector< ResultT >(std::vector< InputT > &&)>::operator=(), paramMulti(), paramMultiRel(), folly::runBenchmarkGetNSPerIteration(), and TEST().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 352 of file BenchmarkTest.cpp.
References folly::runBenchmarks(), and folly::runBenchmarksOnFlag().
| unsigned paramMulti | ( | unsigned | iter, |
| unsigned | num | ||
| ) |
| unsigned paramMultiRel | ( | unsigned | iter, |
| unsigned | num | ||
| ) |
Definition at line 307 of file BenchmarkTest.cpp.
References folly::BENCHMARK_DRAW_LINE(), BENCHMARK_PARAM_MULTI, BENCHMARK_RELATIVE_PARAM_MULTI, fun(), i, and paramMulti().