• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-213

src/04-Jan-2025-187105

CMakeLists.txtD04-Jan-2025307 139

README.rstD04-Jan-2025907 2218

prj.confD04-Jan-2025204 95

testcase.yamlD04-Jan-2025424 1918

README.rst

1Scheduler Microbenchmark
2########################
3
4This is a scheduler microbenchmark, designed to measure minimum
5latencies (not scaling performance) of specific low level scheduling
6primitives independent of overhead from application or API
7abstractions.  It works very simply: a main thread creates a "partner"
8thread at a higher priority, the partner then sleeps using
9_pend_curr_irqlock().  From this initial state:
10
111. The main thread calls _unpend_first_thread()
122. The main thread calls _ready_thread()
133. The main thread calls k_yield()
14   (the kernel switches to the partner thread)
154. The partner thread then runs and calls _pend_curr_irqlock() again
16   (the kernel switches to the main thread)
175. The main thread returns from k_yield()
18
19It then iterates this many times, reporting timestamp latencies
20between each numbered step and for the whole cycle, and a running
21average for all cycles run.
22