Skip to content

[Task]: Get example performance measurements on QEMU #457

Closed

Description

@rogurr

Feature Overview

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.

Activity

  1. added
    state:needs-triage
    type:feature-request
    on May 23, 2025
  2. removed
    state:needs-triage
    on May 23, 2025
  3. makubacki commented on May 23, 2025

    @makubacki
    Collaborator

    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?

  4. added theissue type on May 23, 2025
  5. changed the title [-][Feature]: Optimize DXE Core Binary Speed[/-] [+][Task]: Get example performance measurements[/+] on May 23, 2025
  6. makubacki commented on May 23, 2025

    @makubacki
    Collaborator

    I renamed the task since the main ask here is to gather data. We may optimize based on that data later.

  7. added
    type:documentation
    and removed
    type:feature-request
    on May 23, 2025
  8. berlin-with0ut-return commented on May 24, 2025

    @berlin-with0ut-return
    Contributor

    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

  9. rogurr commented on Jun 18, 2025

    @rogurr
    ContributorAuthor

    @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.

  10. makubacki commented on Jun 19, 2025

    @makubacki
    Collaborator

    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.

  11. removed their assignment
    on Jun 19, 2025
  12. makubacki commented on Jun 19, 2025

    @makubacki
    Collaborator

    @berlin-with0ut-return, are you able to help get that data?

  13. berlin-with0ut-return commented on Jun 19, 2025

    @berlin-with0ut-return
    Contributor

    @berlin-with0ut-return, are you able to help get that data?

    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.

  14. moved this to Committed in Patinaon Jul 31, 2025
  15. added this to the Open Source milestone on Jul 31, 2025
  16. added
    urgency:medium
    on Aug 1, 2025
  17. makubacki commented on Aug 4, 2025

    @makubacki
    Collaborator

    @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.

  18. berlin-with0ut-return commented on Aug 13, 2025

    @berlin-with0ut-return
    Contributor
  19. changed the title [-][Task]: Get example performance measurements[/-] [+][Task]: Get example performance measurements on QEMU[/+] on Oct 31, 2025
  20. makubacki commented on Mar 11, 2026

    @makubacki
    Collaborator

    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.

  21. moved this from Committed to Done in Patinaon Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type:documentationurgency:medium

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions