![]() ![]() Then I bought a Mac.Did you try profile guided optimization? My guess it that may be the easiest way to get the best binary without resorting to potentially dangerous flags. ![]() I too then bought a Mac and love the little things like, sleep that works. Possible expected outcome is one option out of the entire set of options?! YOU DON'T SAY!!!! My conclusion was that compiler optimizations are of great benefit to single-task servers (a transcoding server in my case), but are currently out of reach for a general desktop.Īs many gentoo users have found, compiler flags generally have one of the following effects. The problem is that you will never be able to find and fix all of the minor issues caused by the optimizations across all binaries to a level required by a distro. Overall, a system with local optimizations performed approximately 50% better on average than a generic "-o2" solution. Other issues involved (pre)linking and libraries, killing misbehaving binaries, memory reclamation, etc. ![]() The issue that I ran into was that the results would change depending on factors such as platform arch, available memory, and CPU affinity. ![]() Results were dumped to a file and sorted. I once had a bash script for a number of CLI binaries (notably ffmpeg, faac, flac) which would iterate through cflag combinations and compilers (gcc versus icc) After each iteration, the script would run an automated benchmark on the resulting binary. In addition, performance increases often require certain combinations of compiler flags, making the tweak more complex than adding "-march" Holy shit, I didn't expect such a boost with a simple compiler flag.As many gentoo users have found, compiler flags generally have one of the following effects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |