klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Evaluate Profile-Guided Optimization (PGO) #284

Open zamazan4ik opened 10 months ago

zamazan4ik commented 10 months ago

According to my tests, Profile-Guided Optimization (PGO) helps with optimizing to a lot of software (including OS like Linux and Windows - link). I think it's worth trying to apply PGO to ToaruOS.

We need to perform PGO benchmarks on ToaruOS. If it shows improvements - add a note to the documentation about possible improvements to ToaruOS's performance with PGO. After that, providing an easier way (e.g. a build option) to build scripts with PGO can be useful for the maintainers and end-users too. Also, applying PGO on ToaruOS can be used as an example for other operating systems.

If anyone already did PGO benchmarks with ToaruOS - would be awesome to see the results.