cargo-pgo VS llvm-propeller

Compare cargo-pgo vs llvm-propeller and see what are their differences.

cargo-pgo

Cargo subcommand for optimizing Rust binaries/libraries with PGO and BOLT. (by Kobzol)

llvm-propeller

PROPELLER: Profile Guided Optimizing Large Scale LLVM-based Relinker (by google)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
cargo-pgo llvm-propeller
3 6
431 331
- 0.6%
6.8 0.0
about 4 hours ago 6 months ago
Rust Shell
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cargo-pgo

Posts with mentions or reviews of cargo-pgo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-27.

llvm-propeller

Posts with mentions or reviews of llvm-propeller. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-23.
  • Speed of Rust vs. C
    2 projects | news.ycombinator.com | 23 Feb 2024
    > In theory, Rust allows even better optimizations than C thanks to stricter immutability and aliasing rules, but in practice this doesn't happen yet. Optimizations beyond what C does are a work-in-progress in LLVM, so Rust still hasn't reached its full potential.

    Really glad to see this mentioned, I search for it in every post like this.

    LLVM should follow now that the mutable noalias bugs appear to be fixed. Remember when it was a meme that every time it gets enabled in rustc, it has to be disabled again in the next .1 release? It's been left enabled for years.

    The biggest challenge here is that most people aren't looking for optimizations beyond what they were already getting with C. Like when Google was switching from GCC to Clang, they'd pick apart the asm and report bugs for Clang and LLVM to converge on GCC. That was a big part of why the performance gap closed over the years. But that was closing a gap, not speculatively overtaking them.

    Then there's a whole other angle; we now know just how much machine code layout can affect real-world performance, in most cases much more than aliasing rules, but we still haven't made it a seamless part of our build tooling. PGO is now fairly easy, but BOLT is still a pain to integrate for no clear reason, and PROPELLER has been left in an embarrassing state where even its own PDF link is broken [1]. (To be fair, it may not be Google's highest priority at this time.)

    [1] https://github.com/google/llvm-propeller

  • Speeding up the Rust compiler without changing its code
    4 projects | /r/rust | 27 Oct 2022
    Looks like they deleted their branches. The latest commit I could find (via pr#11) seems to have the PDF. https://github.com/google/llvm-propeller/tree/424c3b885e60d8ff9446b16df39d84fbf6596aec
    4 projects | /r/rust | 27 Oct 2022
    Seeing BOLT is becoming increasingly mainstream while nobody has even heard of PROPELLER, it looks like Google abandoned PROPELLER before finishing the upstreaming. In fact, the official link to the paper is now a 404, meaning not only is every article's link to the paper broken, but the GitHub repo's own link to its own paper is broken. Not even Wayback Machine seems to have it because of how GitHub embeds a PDF reader.
  • Performance variation when moving functions between files
    2 projects | /r/rust | 17 Jun 2022
    Google also wrote PROPELLER which claims to be even better than BOLT, but I don't know why they didn't drive it all the way to upstream. BOLT got merged after PROPELLER claimed to obsolete it. I can only assume there was a lot more to the story than anyone is saying in public.
  • AV1 related job offer :O
    2 projects | /r/AV1 | 2 Jan 2021

What are some alternatives?

When comparing cargo-pgo and llvm-propeller you can also consider the following projects:

BOLT - Binary Optimization and Layout Tool - A linux command-line utility used for optimizing performance of binaries

coz - Coz: Causal Profiling

cargo-xtask

cross - “Zero setup” cross compilation and “cross testing” of Rust crates

rsmgclient - Memgraph database adapter for Rust programming language.

cross - “Zero setup” cross compilation and “cross testing” of Rust crates [Moved to: https://github.com/cross-rs/cross]