-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Python polars wheels with PGO #9702
Comments
Yes, I'd be very interested in that. I think including the db-benchmark and the tpch benchmark code in the guided data seem to me to be interesting candidates. Tests would be easiest. Not any experience with setting it up though, so any help on this is appreciated. |
@ritchie46 Is there any easy way to compare two benchmark results? I'd like to confirm that it actually improves performance before putting too much effort. |
The easiest start are the TPCH benchmarks: https://github.com/pola-rs/tpch/tree/main/polars_queries The repo has a |
I think you also could be interested in my recent benchmark regarding PGO to different kinds of software (including a lot of databases and database libraries (like RocksDB)) - https://github.com/zamazan4ik/awesome-pgo . |
From some of the blog posts it looks like +15% can be done. That's the difference a CPU makes from one generation to another. |
Any update on this? PGO is a very interesting way to improve performance with the only cost is deployment and build complexity. |
I started taking a look at that today. It seemed that using the flow documented in https://doc.rust-lang.org/rustc/profile-guided-optimization.html - and when benchmarking the PGO'd version after that - i didn't any change in performance. I suspect that the issue is that only the Currently trying to make it work on all the crates (Note - I use rosetta2, However i don't think that should be a problem or a reason for the PGO not to make an affect) |
I have only used Kobzols Cargo-pgo tool so i have less experience with the raw pgo scripts. @zamazan4ik the go to guy with everything pgo. |
After Compiling with global flags e.g.
which is referenced in the following issues: I will try to check if a different LTO setting will make it compile, and check the effect |
|
these rust issues have been resolved - would probably be a good idea to try again |
@alonme did you manage to build with lot and pgo?, I know you looked into this earlier. |
Problem description
It seems that PGO is a success for pydantic-core, I wonder whether it will speedup py-polars.
The text was updated successfully, but these errors were encountered: