Fix the smoother benchmark

This commit is contained in:
Jean Pierre Cimalando 2020-06-22 02:27:49 +02:00
parent 2338bd8160
commit a4f43cabd0

View file

@ -21,7 +21,7 @@ public:
input = std::vector<float>(state.range(0)); input = std::vector<float>(state.range(0));
output = std::vector<float>(state.range(0)); output = std::vector<float>(state.range(0));
std::generate(input.begin(), input.end(), [&]() { return dist(gen); }); std::generate(input.begin(), input.end(), [&]() { return dist(gen); });
sfz::cumsum<float, false>(input, absl::MakeSpan(input)); sfz::cumsum<float>(input, absl::MakeSpan(input));
} }
void TearDown(const ::benchmark::State& /* state */) void TearDown(const ::benchmark::State& /* state */)