mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
tests/bench/runtime_coreapis: fix test on 8 bit system
Reduce size of list nodes to sort to 64 on 8 bit and 16 bit systems to reduce the time the test takes. On 8 bit systems sorting 256 list items a thousand times takes more than 2 minutes, which is way above the 30 seconds timeout the test waits to receive the next expected output.
This commit is contained in:
parent
dcf4aa5627
commit
31ea0af9a5
@ -21,6 +21,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "architecture.h"
|
||||
#include "benchmark.h"
|
||||
#include "mutex.h"
|
||||
#include "test_utils/expect.h"
|
||||
@ -38,8 +39,14 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Assuming < 32 bit architectures to be too slow to sort 256 nodes in time
|
||||
* for this benchmark */
|
||||
#ifndef BENCH_CLIST_SORT_TEST_NODES
|
||||
# define BENCH_CLIST_SORT_TEST_NODES 256
|
||||
# if ARCHITECTURE_WORD_BITS < 32
|
||||
# define BENCH_CLIST_SORT_TEST_NODES 64
|
||||
# else
|
||||
# define BENCH_CLIST_SORT_TEST_NODES 256
|
||||
# endif
|
||||
#endif
|
||||
|
||||
struct test_node {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user