CppBenchmark  1.0.4.0
C++ Benchmark Library
random.cpp

Random distribution benchmark

//
// Created by Ivan Shynkarenka on 03.08.2015
//
BENCHMARK("rand()")
{
rand();
}
BENCHMARK("rand()-till-zero", Settings().Infinite().Attempts(10))
{
if (rand() == 0)
context.Cancel();
}
CppBenchmark definitions.
#define BENCHMARK_MAIN()
Benchmark main entry point macro.
Definition: cppbenchmark.h:46
#define BENCHMARK(...)
Benchmark register macro.
Definition: cppbenchmark.h:68