mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
bench: add avx resampler to benchmark
This commit is contained in:
parent
e7ef13e310
commit
fe6ebd0e8a
2 changed files with 19 additions and 4 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue