Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Comparison result between two benchmark measurements.

BenchmarkResult first;

First benchmark measurement (baseline or candidate).

BenchmarkResult second;

Second benchmark measurement to compare against.

[[nodiscard]] constexpr auto BenchmarkComparison::ratio() const -> double;

Computes the duration ratio of the first benchmark relative to the second.

Retourne : Duration ratio (first / second).

[[nodiscard]] constexpr auto BenchmarkComparison::isFirstFaster() const -> bool;

Checks if the first benchmark executed faster than the second benchmark.

Retourne : True if first took less time than second.

[[nodiscard]] constexpr auto BenchmarkComparison::speedup() const -> double;

Computes the speedup multiplier (> 1.0) of the faster benchmark over the slower one.

Retourne : Speedup factor.