1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/bench/mutex_pingpong
2023-05-10 09:49:56 +02:00
..
tests tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00
main.c tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00
Makefile tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00
Makefile.ci tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00
README.md tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00

About

In this test, one thread will repeatedly lock a mutex, while another thread will unlock it. The result is the number of unlocks done in an interval of one second, which amounts to half the number of incurred context switches.

This test application intentionally duplicates code with some similar benchmark applications in order to be able to compare code sizes.