Build MongoDB with PGO
I would like to see support for PGO (and even LLVM Bolt) in the upstream. Would be awesome if MongoDB will distribute PGO-optimized binaries, so the users will be able to see an additional performance boost "for free". At least describe to the users somewhere in the documentation, how they could achieve a boost for their own scenarios with PGO.
![](https://secure.gravatar.com/avatar/3038fb4f2b513ba651c2154c95ec90f8?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
zamazan4ik commented
I did the benchmarks with PGO and the results are available here: https://github.com/zamazan4ik/awesome-pgo/blob/main/mongodb.md
Looks like it's possible to achieve much better performance with PGO.
More about PGO for other applications (including a lot of other databases) you will find here - https://github.com/zamazan4ik/awesome-pgo/