FPU benchmark
#include <cmath>
{
[[maybe_unused]] static double sum = 0;
sum += sin(123.456);
}
{
[[maybe_unused]] static double sum = 0;
sum += cos(123.456);
}
{
[[maybe_unused]] static double sum = 0;
sum += tan(123.456);
}
CppBenchmark definitions.
#define BENCHMARK_MAIN()
Benchmark main entry point macro.
#define BENCHMARK(...)
Benchmark register macro.