CppBenchmark  1.0.4.0
C++ Benchmark Library
fpu.cpp

FPU benchmark

//
// Created by Ivan Shynkarenka on 03.08.2015
//
#include <cmath>
BENCHMARK("sin()")
{
[[maybe_unused]] static double sum = 0;
sum += sin(123.456);
}
BENCHMARK("cos()")
{
[[maybe_unused]] static double sum = 0;
sum += cos(123.456);
}
BENCHMARK("tan()")
{
[[maybe_unused]] static double sum = 0;
sum += tan(123.456);
}
CppBenchmark definitions.
#define BENCHMARK_MAIN()
Benchmark main entry point macro.
Definition: cppbenchmark.h:46
#define BENCHMARK(...)
Benchmark register macro.
Definition: cppbenchmark.h:68