mirror of
https://github.com/zephyrproject-rtos/zephyr.git
synced 2025-12-13 22:45:14 +01:00
Page:
[HOW TO] Generate benchmarks metrics
Pages
2019 GSoC Project Ideas
2021 GSoC Project Ideas
2021 Zephyr Developer Summit
ARM Architecture CI Test Strategy
Architecture Working Group
Bluetooth Working Group
Board Testing Introduction
Boot Zephyr from SYSLINUX
CFP Calendar
Change Control and Backports to stable branches
Continuous Integration
Dashboards
Documenting Code for Traceability
Filters
Git Tips
Google Season of Docs
Home
Marketing Committee
Meetup and Event Resources
Merge List MOTD
Moving ext components to dedicated repos
Networking Working Group
Process Working Group
Program Management
Projects Based on Zephyr
Release Engineering Process and Merge Queue Management
Release Management
Release Working Group
Repeatable Builds by Architecture
Safety Committee
Safety FAQ
Safety Working Group
Security Best Practices
Security Committee
Security Response Rotation
Security Working Group
Sensors Working Group
TSC Voting Process
Technical Steering Committee (TSC)
Testing Working Group
Toolchain Working Group
Truck Factor
Working Group Elections 2024
Working Group Elections
Zephyr Committee and Working Groups
Zephyr Group Calendars
[HOW TO] Generate a binary footprint for a basic Zephyr application
[HOW TO] Generate benchmarks metrics
No results
All benchmark tests for the Zephyr RTOS are stored in its codebase here
We recommend running a test called “latency_measure” first. This benchmark measures the latency of selected kernel capabilities, including:
- Measure time to switch from ISR back to interrupted thread
- Measure time from ISR to executing a different thread (rescheduled)
- Measure average time to signal a semaphore then test that semaphore
- Measure average time to signal a semaphore then test that semaphore with a context switch
- Measure average time to lock a mutex then unlock that mutex
- Measure average context switch time between threads using (k_yield)
- Measure average context switch time between threads (coop)
- Time it takes to suspend a thread
- Time it takes to resume a suspended thread
- Time it takes to create a new thread (without starting it)
- Time it takes to start a newly created thread
To run that test please follow common instructions for building and flashing Zephyr's applications:
$ cd ~/zephyrproject/zephyr
$ west build -p -b reel_board tests/benchmarks/latency_measure/
Open a serial port using a second terminal window, for example
$ sudo minicom -D /dev/ttyACM0 -b 115200
$ west flash
View the result in the terminal output
© 2018-2023 Zephyr® Project. Zephyr is a trademark of the Linux Foundation.
Zephyr Project Home | Documentation Home | Mailing lists
Zephyr Project Home | Documentation Home | Mailing lists