zephyr/tests/benchmarks/wait_queues
Peter Mitsis 2221ca82d4 tests: wait queue benchmarks
Implements a set of tests designed to show how the performance of the two
wait queue implementations (DUMB and SCALABLE) change as the number of
threads in the wait queue varies.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-10-07 20:16:20 -04:00
..
src
CMakeLists.txt
Kconfig
README.rst
prj.conf
prj.verbose.conf
testcase.yaml

README.rst

Wait Queue Measurements
#######################

A Zehpyr application developer may choose between two different wait queue
implementations--dumb and scalable. These two queue implementations perform
differently under different loads. This benchmark can be used to showcase how
the performance of these two implementations vary under varying conditions.

These conditions include:
* Time to add threads of increasing priority to a wait queue
* Time to add threads of decreasing priority to a wait queue
* Time to remove highest priority thread from a wait queue
* Time to remove lowest priority thread from a wait queue

By default, these tests show the minimum, maximum, and averages of the measured
times. However, if the verbose option is enabled then the raw timings will also
be displayed. The following will build this project with verbose support:

    EXTRA_CONF_FILE="prj.verbose.conf" west build -p -b <board> <path to project>