-
Notifications
You must be signed in to change notification settings - Fork 125
Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT #367
Copy link
Copy link
Open
Description
Hi!
Recently I did many Profile-Guided Optimization (PGO) benchmarks on multiple projects (including interpreters and compilers like CPython, Rustc, Clang, GCC, and many others) - the results are available here. So that's why I think it's worth trying to apply PGO to Berry tooling.
I can suggest the following things to do:
- Evaluate PGO's applicability to Berry tooling with benchmarks.
- If PGO helps to achieve better performance - add a note to Berry's documentation about that. In this case, users and maintainers will be aware of another optimization opportunity for Berry.
- 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:
- Python:
- Rustc: a CI script for the multi-stage build
- GCC:
- Clang: Docs
- Go: Bash script
- V8: Bazel flag
- ChakraCore: Scripts
- Chromium: Script
- Firefox: Docs
- Thunderbird has PGO support too
- PHP - Makefile command and old Centminmod scripts
- MySQL: CMake script
- YugabyteDB: GitHub commit
- FoundationDB: Script
- Zstd: Makefile
- Foot: Scripts
- Windows Terminal: GitHub PR
- Pydantic-core: GitHub PR
After PGO, I can suggest evaluating LLVM BOLT as an additional optimization step after PGO.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels