commit 7182f375be4f4fddbc3ef24a82dfbcfe7c688687
parent 4f7beafcd3a4065179b88f5138b0a3716832a98d
Author: Matt Demanett <matt@demanett.net>
Date: Tue, 9 Jun 2020 23:47:36 -0400
Namespaces on benchmarks for easier filtering.
Diffstat:
6 files changed, 112 insertions(+), 112 deletions(-)
diff --git a/benchmarks/analyzer_benchmark.cpp b/benchmarks/analyzer_benchmark.cpp
@@ -5,14 +5,14 @@
using namespace bogaudio::dsp;
-static void BM_HanningWindowInit(benchmark::State& state) {
+static void BM_Analyzer_HanningWindowInit(benchmark::State& state) {
for (auto _ : state) {
delete new HanningWindow(1024);
}
}
-BENCHMARK(BM_HanningWindowInit);
+BENCHMARK(BM_Analyzer_HanningWindowInit);
-static void BM_HanningWindowApply(benchmark::State& state) {
+static void BM_Analyzer_HanningWindowApply(benchmark::State& state) {
const int n = 1024;
HanningWindow w(n);
float in[n];
@@ -23,9 +23,9 @@ static void BM_HanningWindowApply(benchmark::State& state) {
in[0] = out[0]; // prevents the call from being optimized away?
}
}
-BENCHMARK(BM_HanningWindowApply);
+BENCHMARK(BM_Analyzer_HanningWindowApply);
-static void BM_RuntimeFFT1024(benchmark::State& state) {
+static void BM_Analyzer_RuntimeFFT1024(benchmark::State& state) {
const int n = 1024;
ffft::FFTReal<float> fft(n);
float in[n];
@@ -35,9 +35,9 @@ static void BM_RuntimeFFT1024(benchmark::State& state) {
fft.do_fft(out, in);
}
}
-BENCHMARK(BM_RuntimeFFT1024);
+BENCHMARK(BM_Analyzer_RuntimeFFT1024);
-static void BM_CompileTimeFFT1024(benchmark::State& state) {
+static void BM_Analyzer_CompileTimeFFT1024(benchmark::State& state) {
FFT1024 fft;
const int n = 1024;
float in[n];
@@ -47,9 +47,9 @@ static void BM_CompileTimeFFT1024(benchmark::State& state) {
fft.do_fft(out, in);
}
}
-BENCHMARK(BM_CompileTimeFFT1024);
+BENCHMARK(BM_Analyzer_CompileTimeFFT1024);
-static void BM_RuntimeFFT4096(benchmark::State& state) {
+static void BM_Analyzer_RuntimeFFT4096(benchmark::State& state) {
const int n = 4096;
ffft::FFTReal<float> fft(n);
float in[n];
@@ -59,9 +59,9 @@ static void BM_RuntimeFFT4096(benchmark::State& state) {
fft.do_fft(out, in);
}
}
-BENCHMARK(BM_RuntimeFFT4096);
+BENCHMARK(BM_Analyzer_RuntimeFFT4096);
-static void BM_CompileTimeFFT4096(benchmark::State& state) {
+static void BM_Analyzer_CompileTimeFFT4096(benchmark::State& state) {
FFT4096 fft;
const int n = 4096;
float in[n];
@@ -71,9 +71,9 @@ static void BM_CompileTimeFFT4096(benchmark::State& state) {
fft.do_fft(out, in);
}
}
-BENCHMARK(BM_CompileTimeFFT4096);
+BENCHMARK(BM_Analyzer_CompileTimeFFT4096);
-static void BM_SpectrumAnalyzerStep(benchmark::State& state) {
+static void BM_Analyzer_SpectrumAnalyzerStep(benchmark::State& state) {
SpectrumAnalyzer sa(
SpectrumAnalyzer::SIZE_1024,
SpectrumAnalyzer::OVERLAP_1,
@@ -88,9 +88,9 @@ static void BM_SpectrumAnalyzerStep(benchmark::State& state) {
i %= 8;
}
}
-BENCHMARK(BM_SpectrumAnalyzerStep);
+BENCHMARK(BM_Analyzer_SpectrumAnalyzerStep);
-// static void BM_SpectrumAnalyzerProcess(benchmark::State& state) {
+// static void BM_Analyzer_SpectrumAnalyzerProcess(benchmark::State& state) {
// SpectrumAnalyzer sa(
// SpectrumAnalyzer::SIZE_1024,
// SpectrumAnalyzer::OVERLAP_1,
@@ -106,9 +106,9 @@ BENCHMARK(BM_SpectrumAnalyzerStep);
// sa.process(sa._samples);
// }
// }
-// BENCHMARK(BM_SpectrumAnalyzerProcess);
+// BENCHMARK(BM_Analyzer_SpectrumAnalyzerProcess);
-static void BM_SpectrumAnalyzerGetMagnitudes(benchmark::State& state) {
+static void BM_Analyzer_SpectrumAnalyzerGetMagnitudes(benchmark::State& state) {
SpectrumAnalyzer sa(
SpectrumAnalyzer::SIZE_1024,
SpectrumAnalyzer::OVERLAP_1,
@@ -126,4 +126,4 @@ static void BM_SpectrumAnalyzerGetMagnitudes(benchmark::State& state) {
sa.getMagnitudes(bins, nBins);
}
}
-BENCHMARK(BM_SpectrumAnalyzerGetMagnitudes);
+BENCHMARK(BM_Analyzer_SpectrumAnalyzerGetMagnitudes);
diff --git a/benchmarks/buffer_benchmark.cpp b/benchmarks/buffer_benchmark.cpp
@@ -10,14 +10,14 @@ struct BMOverlappingBuffer : OverlappingBuffer<float> {
void processBuffer(float* samples) override {}
};
-static void BM_OverlappingBuffer(benchmark::State& state) {
+static void BM_Buffer_OverlappingBuffer(benchmark::State& state) {
BMOverlappingBuffer b(1024, 2);
int i = 0;
for (auto _ : state) {
b.step(i++);
}
}
-BENCHMARK(BM_OverlappingBuffer);
+BENCHMARK(BM_Buffer_OverlappingBuffer);
static void _averagingBuffer(benchmark::State& state, int n, int m) {
@@ -37,12 +37,12 @@ static void _averagingBuffer(benchmark::State& state, int n, int m) {
assert(pi > M_PI - e && pi < M_PI + e);
}
-static void BM_AveragingBufferSmallN(benchmark::State& state) {
+static void BM_Buffer_AveragingBufferSmallN(benchmark::State& state) {
_averagingBuffer(state, 1024, 3);
}
-BENCHMARK(BM_AveragingBufferSmallN);
+BENCHMARK(BM_Buffer_AveragingBufferSmallN);
-static void BM_AveragingBufferLargeN(benchmark::State& state) {
+static void BM_Buffer_AveragingBufferLargeN(benchmark::State& state) {
_averagingBuffer(state, 1024, 100);
}
-BENCHMARK(BM_AveragingBufferLargeN);
+BENCHMARK(BM_Buffer_AveragingBufferLargeN);
diff --git a/benchmarks/filter_benchmark.cpp b/benchmarks/filter_benchmark.cpp
@@ -8,7 +8,7 @@
using namespace bogaudio::dsp;
-static void BM_LPFDecimator(benchmark::State& state) {
+static void BM_Filter_LPFDecimator(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 8;
float buf[n];
@@ -20,9 +20,9 @@ static void BM_LPFDecimator(benchmark::State& state) {
benchmark::DoNotOptimize(d.next(buf));
}
}
-BENCHMARK(BM_LPFDecimator);
+BENCHMARK(BM_Filter_LPFDecimator);
-static void BM_CICDecimator(benchmark::State& state) {
+static void BM_Filter_CICDecimator(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 8;
float buf[n];
@@ -34,9 +34,9 @@ static void BM_CICDecimator(benchmark::State& state) {
benchmark::DoNotOptimize(d.next(buf));
}
}
-BENCHMARK(BM_CICDecimator);
+BENCHMARK(BM_Filter_CICDecimator);
-// static void BM_RackDecimator(benchmark::State& state) {
+// static void BM_Filter_RackDecimator(benchmark::State& state) {
// WhiteNoiseGenerator r;
// const int n = 8;
// float buf[n];
@@ -48,9 +48,9 @@ BENCHMARK(BM_CICDecimator);
// benchmark::DoNotOptimize(d.process(buf));
// }
// }
-// BENCHMARK(BM_RackDecimator);
+// BENCHMARK(BM_Filter_RackDecimator);
-static void BM_Biquad(benchmark::State& state) {
+static void BM_Filter_Biquad(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 8;
float buf[n];
@@ -66,9 +66,9 @@ static void BM_Biquad(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_Biquad);
+BENCHMARK(BM_Filter_Biquad);
-static void BM_AnalogFrequency(benchmark::State& state) {
+static void BM_Filter_AnalogFrequency(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 128;
float buf[n];
@@ -82,10 +82,10 @@ static void BM_AnalogFrequency(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_AnalogFrequency);
+BENCHMARK(BM_Filter_AnalogFrequency);
#ifdef RACK_SIMD
-static void BM_Biquad4(benchmark::State& state) {
+static void BM_Filter_Biquad4(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 128;
float buf[n];
@@ -103,10 +103,10 @@ static void BM_Biquad4(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_Biquad4);
+BENCHMARK(BM_Filter_Biquad4);
#endif
-static void BM_BiquadBank4(benchmark::State& state) {
+static void BM_Filter_BiquadBank4(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 128;
float buf[n];
@@ -133,9 +133,9 @@ static void BM_BiquadBank4(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_BiquadBank4);
+BENCHMARK(BM_Filter_BiquadBank4);
-static void BM_BiquadBank16(benchmark::State& state) {
+static void BM_Filter_BiquadBank16(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 128;
float buf[n];
@@ -162,9 +162,9 @@ static void BM_BiquadBank16(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_BiquadBank16);
+BENCHMARK(BM_Filter_BiquadBank16);
-static void BM_BiquadBank16_2Pole(benchmark::State& state) {
+static void BM_Filter_BiquadBank16_2Pole(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 128;
float buf[n];
@@ -191,4 +191,4 @@ static void BM_BiquadBank16_2Pole(benchmark::State& state) {
i = (i + 1) % n;
}
}
-BENCHMARK(BM_BiquadBank16_2Pole);
+BENCHMARK(BM_Filter_BiquadBank16_2Pole);
diff --git a/benchmarks/noise_benchmark.cpp b/benchmarks/noise_benchmark.cpp
@@ -5,34 +5,34 @@
using namespace bogaudio::dsp;
-static void BM_WhiteNoise(benchmark::State& state) {
+static void BM_Noise_WhiteNoise(benchmark::State& state) {
WhiteNoiseGenerator g;
for (auto _ : state) {
g.next();
}
}
-BENCHMARK(BM_WhiteNoise);
+BENCHMARK(BM_Noise_WhiteNoise);
-static void BM_PinkNoise(benchmark::State& state) {
+static void BM_Noise_PinkNoise(benchmark::State& state) {
PinkNoiseGenerator g;
for (auto _ : state) {
g.next();
}
}
-BENCHMARK(BM_PinkNoise);
+BENCHMARK(BM_Noise_PinkNoise);
-static void BM_RedNoise(benchmark::State& state) {
+static void BM_Noise_RedNoise(benchmark::State& state) {
RedNoiseGenerator g;
for (auto _ : state) {
g.next();
}
}
-BENCHMARK(BM_RedNoise);
+BENCHMARK(BM_Noise_RedNoise);
-static void BM_GaussianNoise(benchmark::State& state) {
+static void BM_Noise_GaussianNoise(benchmark::State& state) {
GaussianNoiseGenerator g;
for (auto _ : state) {
g.next();
}
}
-BENCHMARK(BM_GaussianNoise);
+BENCHMARK(BM_Noise_GaussianNoise);
diff --git a/benchmarks/oscillator_benchmark.cpp b/benchmarks/oscillator_benchmark.cpp
@@ -5,31 +5,31 @@
using namespace bogaudio::dsp;
-static void BM_Phasor(benchmark::State& state) {
+static void BM_Oscillator_Phasor(benchmark::State& state) {
Phasor p(44100.0, 440.0);
for (auto _ : state) {
p.next();
}
}
-BENCHMARK(BM_Phasor);
+BENCHMARK(BM_Oscillator_Phasor);
-static void BM_SineOscillator(benchmark::State& state) {
+static void BM_Oscillator_SineOscillator(benchmark::State& state) {
SineOscillator o(44100.0, 440.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SineOscillator);
+BENCHMARK(BM_Oscillator_SineOscillator);
-static void BM_SineTableOscillator(benchmark::State& state) {
+static void BM_Oscillator_SineTableOscillator(benchmark::State& state) {
SineTableOscillator o(44100.0, 440.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SineTableOscillator);
+BENCHMARK(BM_Oscillator_SineTableOscillator);
-static void BM_SineOscillatorFM(benchmark::State& state) {
+static void BM_Oscillator_SineOscillatorFM(benchmark::State& state) {
const float baseHz = 440.0;
SineOscillator m(44100.0, baseHz);
SineOscillator c(44100.0, baseHz);
@@ -38,9 +38,9 @@ static void BM_SineOscillatorFM(benchmark::State& state) {
c.next();
}
}
-BENCHMARK(BM_SineOscillatorFM);
+BENCHMARK(BM_Oscillator_SineOscillatorFM);
-static void BM_SineTableOscillatorPM(benchmark::State& state) {
+static void BM_Oscillator_SineTableOscillatorPM(benchmark::State& state) {
SineTableOscillator m(44100.0, 440.0);
SineTableOscillator c(44100.0, 440.0);
for (auto _ : state) {
@@ -48,69 +48,69 @@ static void BM_SineTableOscillatorPM(benchmark::State& state) {
c.nextFromPhasor(c, Phasor::radiansToPhase(m.next()));
}
}
-BENCHMARK(BM_SineTableOscillatorPM);
+BENCHMARK(BM_Oscillator_SineTableOscillatorPM);
-static void BM_SawOscillator(benchmark::State& state) {
+static void BM_Oscillator_SawOscillator(benchmark::State& state) {
SawOscillator o(44100.0, 440.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SawOscillator);
+BENCHMARK(BM_Oscillator_SawOscillator);
-static void BM_SaturatingSawOscillator(benchmark::State& state) {
+static void BM_Oscillator_SaturatingSawOscillator(benchmark::State& state) {
SaturatingSawOscillator o(44100.0, 440.0);
o.setSaturation(0.9);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SaturatingSawOscillator);
+BENCHMARK(BM_Oscillator_SaturatingSawOscillator);
-static void BM_BandLimitedSawOscillator(benchmark::State& state) {
+static void BM_Oscillator_BandLimitedSawOscillator(benchmark::State& state) {
BandLimitedSawOscillator o(44100.0, 440.0);
o.setQuality(12);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_BandLimitedSawOscillator);
+BENCHMARK(BM_Oscillator_BandLimitedSawOscillator);
-static void BM_SquareOscillator(benchmark::State& state) {
+static void BM_Oscillator_SquareOscillator(benchmark::State& state) {
SquareOscillator o(44100.0, 440.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SquareOscillator);
+BENCHMARK(BM_Oscillator_SquareOscillator);
-static void BM_BandLimitedSquareOscillator(benchmark::State& state) {
+static void BM_Oscillator_BandLimitedSquareOscillator(benchmark::State& state) {
BandLimitedSquareOscillator o(44100.0, 440.0);
o.setQuality(12);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_BandLimitedSquareOscillator);
+BENCHMARK(BM_Oscillator_BandLimitedSquareOscillator);
-static void BM_TriangleOscillator(benchmark::State& state) {
+static void BM_Oscillator_TriangleOscillator(benchmark::State& state) {
TriangleOscillator o(44100.0, 440.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_TriangleOscillator);
+BENCHMARK(BM_Oscillator_TriangleOscillator);
-static void BM_SampledTriangleOscillator(benchmark::State& state) {
+static void BM_Oscillator_SampledTriangleOscillator(benchmark::State& state) {
TriangleOscillator o(44100.0, 440.0);
o.setSampleWidth(Phasor::maxSampleWidth / 2.0);
for (auto _ : state) {
o.next();
}
}
-BENCHMARK(BM_SampledTriangleOscillator);
+BENCHMARK(BM_Oscillator_SampledTriangleOscillator);
-static void BM_SineBankOscillator100(benchmark::State& state) {
+static void BM_Oscillator_SineBankOscillator100(benchmark::State& state) {
SineBankOscillator o(44100.0, 100.0, 100);
for (int i = 1, n = o.partialCount(); i <= n; ++i) {
o.setPartial(i, i, 1.0 / (float)i);
@@ -120,9 +120,9 @@ static void BM_SineBankOscillator100(benchmark::State& state) {
o.next();
}
}
-BENCHMARK(BM_SineBankOscillator100);
+BENCHMARK(BM_Oscillator_SineBankOscillator100);
-static void BM_SineBankOscillator500(benchmark::State& state) {
+static void BM_Oscillator_SineBankOscillator500(benchmark::State& state) {
SineBankOscillator o(44100.0, 500.0, 100);
for (int i = 1, n = o.partialCount(); i <= n; ++i) {
o.setPartial(i, i, 1.0 / (float)i);
@@ -132,9 +132,9 @@ static void BM_SineBankOscillator500(benchmark::State& state) {
o.next();
}
}
-BENCHMARK(BM_SineBankOscillator500);
+BENCHMARK(BM_Oscillator_SineBankOscillator500);
-static void BM_SineBankOscillator5000(benchmark::State& state) {
+static void BM_Oscillator_SineBankOscillator5000(benchmark::State& state) {
SineBankOscillator o(44100.0, 5000.0, 100);
for (int i = 1, n = o.partialCount(); i <= n; ++i) {
o.setPartial(i, i, 1.0 / (float)i);
@@ -144,9 +144,9 @@ static void BM_SineBankOscillator5000(benchmark::State& state) {
o.next();
}
}
-BENCHMARK(BM_SineBankOscillator5000);
+BENCHMARK(BM_Oscillator_SineBankOscillator5000);
-static void BM_SineBankOscillator15000(benchmark::State& state) {
+static void BM_Oscillator_SineBankOscillator15000(benchmark::State& state) {
SineBankOscillator o(44100.0, 15000.0, 100);
for (int i = 1, n = o.partialCount(); i <= n; ++i) {
o.setPartial(i, i, 1.0 / (float)i);
@@ -156,4 +156,4 @@ static void BM_SineBankOscillator15000(benchmark::State& state) {
o.next();
}
}
-BENCHMARK(BM_SineBankOscillator15000);
+BENCHMARK(BM_Oscillator_SineBankOscillator15000);
diff --git a/benchmarks/signal_benchmark.cpp b/benchmarks/signal_benchmark.cpp
@@ -9,7 +9,7 @@
using namespace bogaudio::dsp;
-static void BM_DecibelsToAmplitude(benchmark::State& state) {
+static void BM_Signal_DecibelsToAmplitude(benchmark::State& state) {
std::vector<float> buf = { 10.0f, 6.0f, 3.0f, 0.0f, -3.0f, -6.0f, -10.0f, -30.0f, -60.0f };
int i = 0;
for (auto _ : state) {
@@ -17,9 +17,9 @@ static void BM_DecibelsToAmplitude(benchmark::State& state) {
benchmark::DoNotOptimize(decibelsToAmplitude(buf.at(i)));
}
}
-BENCHMARK(BM_DecibelsToAmplitude);
+BENCHMARK(BM_Signal_DecibelsToAmplitude);
-static void BM_AmplitudeToDecibels(benchmark::State& state) {
+static void BM_Signal_AmplitudeToDecibels(benchmark::State& state) {
std::vector<float> buf = { 0.0001f, 0.0001f, 0.001f, 0.01, 0.1f, 0.3f, 0.5f, 0.8f, 1.0f, 1.5f, 2.0f, 5.0f, 10.0f };
int i = 0;
for (auto _ : state) {
@@ -27,9 +27,9 @@ static void BM_AmplitudeToDecibels(benchmark::State& state) {
benchmark::DoNotOptimize(amplitudeToDecibels(buf.at(i)));
}
}
-BENCHMARK(BM_AmplitudeToDecibels);
+BENCHMARK(BM_Signal_AmplitudeToDecibels);
-static void BM_Amplifier(benchmark::State& state) {
+static void BM_Signal_Amplifier(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 256;
float samples[n];
@@ -47,9 +47,9 @@ static void BM_Amplifier(benchmark::State& state) {
benchmark::DoNotOptimize(a.next(samples[j]));
}
}
-BENCHMARK(BM_Amplifier);
+BENCHMARK(BM_Signal_Amplifier);
-static void BM_RMS_Short(benchmark::State& state) {
+static void BM_Signal_RMS_Short(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -63,9 +63,9 @@ static void BM_RMS_Short(benchmark::State& state) {
benchmark::DoNotOptimize(rms.next(buf[i]));
}
}
-BENCHMARK(BM_RMS_Short);
+BENCHMARK(BM_Signal_RMS_Short);
-static void BM_RMS_Long(benchmark::State& state) {
+static void BM_Signal_RMS_Long(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -79,9 +79,9 @@ static void BM_RMS_Long(benchmark::State& state) {
benchmark::DoNotOptimize(rms.next(buf[i]));
}
}
-BENCHMARK(BM_RMS_Long);
+BENCHMARK(BM_Signal_RMS_Long);
-static void BM_RMS_Modulating(benchmark::State& state) {
+static void BM_Signal_RMS_Modulating(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -100,9 +100,9 @@ static void BM_RMS_Modulating(benchmark::State& state) {
benchmark::DoNotOptimize(rms.next(buf[i]));
}
}
-BENCHMARK(BM_RMS_Modulating);
+BENCHMARK(BM_Signal_RMS_Modulating);
-static void BM_PucketteEnvelopeFollower(benchmark::State& state) {
+static void BM_Signal_PucketteEnvelopeFollower(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -116,9 +116,9 @@ static void BM_PucketteEnvelopeFollower(benchmark::State& state) {
benchmark::DoNotOptimize(pef.next(buf[i]));
}
}
-BENCHMARK(BM_PucketteEnvelopeFollower);
+BENCHMARK(BM_Signal_PucketteEnvelopeFollower);
-static void BM_SlewLimiter(benchmark::State& state) {
+static void BM_Signal_SlewLimiter(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 256;
float buf[n];
@@ -132,9 +132,9 @@ static void BM_SlewLimiter(benchmark::State& state) {
benchmark::DoNotOptimize(sl.next(buf[i]));
}
}
-BENCHMARK(BM_SlewLimiter);
+BENCHMARK(BM_Signal_SlewLimiter);
-static void BM_ShapedSlewLimiter(benchmark::State& state) {
+static void BM_Signal_ShapedSlewLimiter(benchmark::State& state) {
WhiteNoiseGenerator r;
const int n = 256;
float buf[n];
@@ -148,9 +148,9 @@ static void BM_ShapedSlewLimiter(benchmark::State& state) {
benchmark::DoNotOptimize(sl.next(buf[i]));
}
}
-BENCHMARK(BM_ShapedSlewLimiter);
+BENCHMARK(BM_Signal_ShapedSlewLimiter);
-static void BM_Panner(benchmark::State& state) {
+static void BM_Signal_Panner(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -165,9 +165,9 @@ static void BM_Panner(benchmark::State& state) {
p.next(buf[i], l, r);
}
}
-BENCHMARK(BM_Panner);
+BENCHMARK(BM_Signal_Panner);
-static void BM_Panner_Modulating(benchmark::State& state) {
+static void BM_Signal_Panner_Modulating(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -185,9 +185,9 @@ static void BM_Panner_Modulating(benchmark::State& state) {
p.next(buf[i], l, rr);
}
}
-BENCHMARK(BM_Panner_Modulating);
+BENCHMARK(BM_Signal_Panner_Modulating);
-static void BM_DelayLine(benchmark::State& state) {
+static void BM_Signal_DelayLine(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -201,9 +201,9 @@ static void BM_DelayLine(benchmark::State& state) {
benchmark::DoNotOptimize(dl.next(buf[i]));
}
}
-BENCHMARK(BM_DelayLine);
+BENCHMARK(BM_Signal_DelayLine);
-static void BM_Saturator(benchmark::State& state) {
+static void BM_Signal_Saturator(benchmark::State& state) {
SineOscillator o(500.0, 100.0);
const int n = 256;
float buf[n];
@@ -217,9 +217,9 @@ static void BM_Saturator(benchmark::State& state) {
benchmark::DoNotOptimize(s.next(buf[i]));
}
}
-BENCHMARK(BM_Saturator);
+BENCHMARK(BM_Signal_Saturator);
-static void BM_CompressorSoftKnee(benchmark::State& state) {
+static void BM_Signal_CompressorSoftKnee(benchmark::State& state) {
int i = 0;
Compressor c;
for (auto _ : state) {
@@ -227,9 +227,9 @@ static void BM_CompressorSoftKnee(benchmark::State& state) {
benchmark::DoNotOptimize(c.compressionDb((float)(i + 5), 10.0f, 2.0f, true));
}
}
-BENCHMARK(BM_CompressorSoftKnee);
+BENCHMARK(BM_Signal_CompressorSoftKnee);
-static void BM_NoiseGateSoftKnee(benchmark::State& state) {
+static void BM_Signal_NoiseGateSoftKnee(benchmark::State& state) {
int i = 0;
NoiseGate ng;
for (auto _ : state) {
@@ -237,4 +237,4 @@ static void BM_NoiseGateSoftKnee(benchmark::State& state) {
benchmark::DoNotOptimize(ng.compressionDb(0.0f - (float)(i * 3), 0.0f, 2.0f, true));
}
}
-BENCHMARK(BM_NoiseGateSoftKnee);
+BENCHMARK(BM_Signal_NoiseGateSoftKnee);