RTOS performance tests are developed for common features available in any RTOS.
The benchmark suite used in this experiment is the Thread Metric Benchmark Suite that consists of eight tests.
The calibration test is the first test in this suite which is performed to ensure that the platform of the test operates in a similar manner.
The next five tests are Cooperative Scheduling, Preemptive Scheduling, Memory Allocation, Synchronization Processing (Semaphores), and Message Passing.
Each test is run for 30-second intervals, providing the value accumulated in a counter as the result.
To get a reasonable comparison, each RTOS must be configured in a way that makes it fair.
Each RTOS has unique features and configurations that must be accounted for an accurate comparison.
The tests were performed on three popular open-source RTOSes - Zephyr RTOS, FreeRTOS, and Eclipse ThreadX - and one commercial RTOS - PX5 RTOS.
The results of the experiment provided a feel for how the differentiating features might perform for each RTOS.
Engineers can use the data gathered from the experiment to make the right design decisions and ensure that they don't leave any much-needed performance on the table.