From 42b1e163d7cf38b4166dfac7f0c8dc8d152741a6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 7 Feb 2020 15:22:35 +0100 Subject: [PATCH] tests: make benchmarks less busy Reduce iterations of the benchmark so that can finish on slower devices. --- spa/plugins/audioconvert/benchmark-fmt-ops.c | 2 +- spa/tests/benchmark-dict.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/benchmark-fmt-ops.c b/spa/plugins/audioconvert/benchmark-fmt-ops.c index a7e4ecadd..b76a776c5 100644 --- a/spa/plugins/audioconvert/benchmark-fmt-ops.c +++ b/spa/plugins/audioconvert/benchmark-fmt-ops.c @@ -42,7 +42,7 @@ struct stats { #define MAX_SAMPLES 4096 #define MAX_CHANNELS 11 -#define MAX_COUNT 1000 +#define MAX_COUNT 100 static uint8_t samp_in[MAX_SAMPLES * MAX_CHANNELS * 4]; static uint8_t samp_out[MAX_SAMPLES * MAX_CHANNELS * 4]; diff --git a/spa/tests/benchmark-dict.c b/spa/tests/benchmark-dict.c index 301bc090c..94d089f11 100644 --- a/spa/tests/benchmark-dict.c +++ b/spa/tests/benchmark-dict.c @@ -32,7 +32,7 @@ #include -#define MAX_COUNT 1000000 +#define MAX_COUNT 100000 #define MAX_ITEMS 1000 static struct spa_dict_item items[MAX_ITEMS];