Updated benchmarks
This commit is contained in:
parent
e85442a0f3
commit
bb95d8ed86
1 changed files with 4 additions and 8 deletions
|
|
@ -6,8 +6,7 @@ static void AB_Joint_Fill_float(benchmark::State& state) {
|
||||||
AudioBuffer<float> buffer (65535);
|
AudioBuffer<float> buffer (65535);
|
||||||
float fillValue = 0.0f;
|
float fillValue = 0.0f;
|
||||||
for (auto _ : state) {
|
for (auto _ : state) {
|
||||||
std::fill(buffer.begin(0), buffer.end(0), fillValue);
|
buffer.fill(fillValue);
|
||||||
std::fill(buffer.begin(1), buffer.end(1), fillValue);
|
|
||||||
fillValue += 1.0f;
|
fillValue += 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -18,8 +17,7 @@ static void AB_Split_Fill_float(benchmark::State& state) {
|
||||||
SplitAudioBuffer<float> buffer (65535);
|
SplitAudioBuffer<float> buffer (65535);
|
||||||
float fillValue = 0.0f;
|
float fillValue = 0.0f;
|
||||||
for (auto _ : state) {
|
for (auto _ : state) {
|
||||||
std::fill(buffer.begin(0), buffer.end(0), fillValue);
|
buffer.fill(fillValue);
|
||||||
std::fill(buffer.begin(1), buffer.end(1), fillValue);
|
|
||||||
fillValue += 1.0f;
|
fillValue += 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -29,8 +27,7 @@ static void AB_Joint_Fill_double(benchmark::State& state) {
|
||||||
AudioBuffer<double> buffer (65535);
|
AudioBuffer<double> buffer (65535);
|
||||||
double fillValue = 0.0;
|
double fillValue = 0.0;
|
||||||
for (auto _ : state) {
|
for (auto _ : state) {
|
||||||
std::fill(buffer.begin(0), buffer.end(0), fillValue);
|
buffer.fill(fillValue);
|
||||||
std::fill(buffer.begin(1), buffer.end(1), fillValue);
|
|
||||||
fillValue += 1.0;
|
fillValue += 1.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -41,8 +38,7 @@ static void AB_Split_Fill_double(benchmark::State& state) {
|
||||||
SplitAudioBuffer<double> buffer (65535);
|
SplitAudioBuffer<double> buffer (65535);
|
||||||
double fillValue = 0.0;
|
double fillValue = 0.0;
|
||||||
for (auto _ : state) {
|
for (auto _ : state) {
|
||||||
std::fill(buffer.begin(0), buffer.end(0), fillValue);
|
buffer.fill(fillValue);
|
||||||
std::fill(buffer.begin(1), buffer.end(1), fillValue);
|
|
||||||
fillValue += 1.0;
|
fillValue += 1.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue