You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Task]: Get example performance measurements on QEMU #457
To help understand all ramifications of moving to a Rust core, can we get some measurements around speed?
It would be preferable to see the test done on a HW based build instead of QEMU to see if HW delays during a normal boot overshadow any speed changes.
Also it would be really helpful to see the boot speed logger added to both builds and get a report showing driver dispatches, callbacks, etc.
Solution Overview
Have a report that can be added to the patina docs somewhere that shows the boot speed graphs for a specific silicon reference board using both the Rust core and the C core.
Alternatives Considered
The boot speed graph from the logger is just what came to mind. We are open to a better way to show metrics in the actual code if it exists.
Urgency
High
Are you going to implement the feature request?
Someone else needs to implement the feature
Do you need maintainer feedback?
Maintainer feedback requested
Anything else?
This is not blocking development, but I entered the feature urgency as 'High' because an OEM is asking for help understanding full ramifications of switching over to Rust so they can start gathering resources to work on it.
We've added performance instrumentation and gathered preliminary numbers on hardware in the past, but it would be nice to use our latest performance support and get new data. @berlin-with0ut-return, Mathieu mentioned he is going to be working on something else for a while, is this something you could help with?
We've added performance instrumentation and gathered preliminary numbers on hardware in the past, but it would be nice to use our latest performance support and get new data. @berlin-with0ut-return, Mathieu mentioned he is going to be working on something else for a while, is this something you could help with?
i actually already collected data from an Intel device and QEMU a while back. i can share those outputs with anyone who's interested.
are there any other platforms/scenarios we want perf data for?
also, note that cleaning up the perf data is probably necessary before we can get anything useful from the results; right now it's very noisy. it does seem like the Rust core is faster based on the one example i have though
@berlin-with0ut-return
Sherry, I understand the output is probably 'noisy', but I'd love to see what you have so far if it is in a form I can understand. Basically we just need preliminary information about if Rust compared to C code is slower and if so, by how much.
We need to be able to give perf ballpark numbers for QEMU Q35, QEMU SBSA and at least relative perf differences on a physical Intel and Arm platform. At this time, it doesn't need to be extremely detailed (showing measurements within the core), but provide a high level comparison of the perf impact in a release scenario with the Patina DXE core.
i've shared data with Ron offline for Intel LNL (C + Rust).
i already have results for Q35 and should be able to get SBSA pretty easily.
the only one i'll need help with is an ARM physical platform since i don't have one.
Have a report that can be added to the patina docs somewhere that shows the boot speed graphs for a specific silicon reference board using both the Rust core and the C core.
Is blocked by such a board being identified and Patina enabled to gather the data. Since OpenDevicePartnership/patina-qemu@2980e47 is completed and offline data has also been shared, I'm closing this issue. Any specific requests can be made in new issues.
Activity
makubacki commentedon May 23, 2025
We've added performance instrumentation and gathered preliminary numbers on hardware in the past, but it would be nice to use our latest performance support and get new data. @berlin-with0ut-return, Mathieu mentioned he is going to be working on something else for a while, is this something you could help with?
[-][Feature]: Optimize DXE Core Binary Speed[/-][+][Task]: Get example performance measurements[/+]makubacki commentedon May 23, 2025
I renamed the task since the main ask here is to gather data. We may optimize based on that data later.
berlin-with0ut-return commentedon May 24, 2025
i actually already collected data from an Intel device and QEMU a while back. i can share those outputs with anyone who's interested.
are there any other platforms/scenarios we want perf data for?
also, note that cleaning up the perf data is probably necessary before we can get anything useful from the results; right now it's very noisy. it does seem like the Rust core is faster based on the one example i have though
rogurr commentedon Jun 18, 2025
@berlin-with0ut-return
Sherry, I understand the output is probably 'noisy', but I'd love to see what you have so far if it is in a form I can understand. Basically we just need preliminary information about if Rust compared to C code is slower and if so, by how much.
makubacki commentedon Jun 19, 2025
We need to be able to give perf ballpark numbers for QEMU Q35, QEMU SBSA and at least relative perf differences on a physical Intel and Arm platform. At this time, it doesn't need to be extremely detailed (showing measurements within the core), but provide a high level comparison of the perf impact in a release scenario with the Patina DXE core.
makubacki commentedon Jun 19, 2025
@berlin-with0ut-return, are you able to help get that data?
berlin-with0ut-return commentedon Jun 19, 2025
i've shared data with Ron offline for Intel LNL (C + Rust).
i already have results for Q35 and should be able to get SBSA pretty easily.
the only one i'll need help with is an ARM physical platform since i don't have one.
makubacki commentedon Aug 4, 2025
@berlin-with0ut-return, can you please post the Q35 and SBSA results in a markdown file in
patina-qemu? It can be similar to this file which had binary size details - https://github.com/OpenDevicePartnership/patina-qemu/blob/main/Platforms/Docs/Common/patina_dxe_core_release_binary_size.md. The main purpose of the file is to walk a user through how to get the measurements.As you're already doing, please only share physical platform results directly with Ron.
berlin-with0ut-return commentedon Aug 13, 2025
OpenDevicePartnership/patina-qemu#48
[-][Task]: Get example performance measurements[/-][+][Task]: Get example performance measurements on QEMU[/+]makubacki commentedon Mar 11, 2026
Is blocked by such a board being identified and Patina enabled to gather the data. Since OpenDevicePartnership/patina-qemu@2980e47 is completed and offline data has also been shared, I'm closing this issue. Any specific requests can be made in new issues.