bench: add avx resampler to benchmark

This commit is contained in:
Wim Taymans 2019-03-28 16:53:26 +01:00
parent e7ef13e310
commit fe6ebd0e8a
2 changed files with 19 additions and 4 deletions

View file

@ -80,6 +80,8 @@ static void run_test1(const char *name, const char *impl, bool in_packed, bool o
clock_gettime(CLOCK_MONOTONIC, &ts);
t2 = SPA_TIMESPEC_TO_NSEC(&ts);
spa_assert(n_results < MAX_RESULTS);
results[n_results++] = (struct stats) {
.n_samples = n_samples,
.n_channels = n_channels,
@ -236,8 +238,6 @@ int main(int argc, char *argv[])
test_interleave();
test_deinterleave();
spa_assert(n_results <= MAX_RESULTS);
qsort(results, n_results, sizeof(struct stats), compare_func);
for (i = 0; i < n_results; i++) {