Benchmark FreeRTOS

nathandescombes wrote on Thursday, February 28, 2019:

Hello,

I am looking for timing about context switch, interrupt latency, semaphore locking/releasing etc.
Especially some reporting tests result on ARM Cortex-M(3/4/7)&A(5/7/8/9) if possible…

Thank you.

Nathan

rtel wrote on Thursday, February 28, 2019:

I am looking for timing about context switch, interrupt latency,

Information on the number of cycles to actually perform a context switch
can be found here: FreeRTOS FAQ relating to FreeRTOS memory management and usage. FreeRTOS is an Open Source RTOS Kernel for small embedded systems

semaphore locking/releasing etc.

If you want performance then semaphores are not the best option (they
are implemented using macros on top of a generic queue implementation)
so I suggest instead looking at direct to task notifications which are
directly task to task with no intermediate object and much simpler
logic. FreeRTOS task notifications, fast Real Time Operating System (RTOS) event mechanism

Take a look at the approach taken in this article: “TLS Protocol Analysis Using IoTST—An IoT Benchmark Based on Scheduler Traces.”