From c842930bab51e35355cfafc8e4751abdef1130fa Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Fri, 22 Nov 2019 17:53:06 +0100 Subject: [PATCH] Corrected an error with the new version of benchmark --- benchmarks/BM_ADSR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/BM_ADSR.cpp b/benchmarks/BM_ADSR.cpp index 0125507f..ff654eb8 100644 --- a/benchmarks/BM_ADSR.cpp +++ b/benchmarks/BM_ADSR.cpp @@ -49,7 +49,7 @@ static void Point(benchmark::State& state) { out = envelope.getNextValue(); benchmark::DoNotOptimize(output); } - state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate); + state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsRate); } static void Block(benchmark::State& state) { @@ -63,7 +63,7 @@ static void Block(benchmark::State& state) { benchmark::DoNotOptimize(output); } - state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate); + state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsRate); } BENCHMARK(Point)->RangeMultiplier(2)->Range((2<<6), (2<<11));