Skip to content

[FEATURE] Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT #2399

@zamazan4ik

Description

@zamazan4ik

Feature Description

Not a feature - just an idea of how to improve Hyperswitch performance (CPU usage part).

Possible Implementation

Recently I did many Profile-Guided Optimization (PGO) benchmarks on multiple projects (including many network-related projects like Envoy, HAProxy, etc.) - the results are available here. I think it could interesting to try to test PGO for optimizing the CPU part of Hyperswitch.

I can suggest the following things to do:

  • Evaluate PGO's applicability to Hyperswitch.
  • If PGO helps to achieve better performance - add a note to Hyperswitch's documentation about that. In this case, users and maintainers will be aware of another optimization opportunity for Hyperswitch.
  • Provide PGO integration into the build scripts. It can help users and maintainers easily apply PGO for their own workloads.

Here are some examples of how PGO is already integrated into other projects' build scripts:

After PGO, I can suggest evaluating LLVM BOLT as an additional optimization step after PGO.

For the Rust projects, I recommend starting with cargo-pgo.

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

No, I don't have time to work on this right now

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: Feature request or enhancementP-mediumPriority: Medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions