4 ms·
My experience with MSVC and ICC is similar - O3 is often worse than O2, and a lot of the time Os is actually the fastest (and smallest).
by userbinator 5y ago
My experience with MSVC and ICC is similar - O3 is often worse than O2, and a lot of the time Os is actually the fastest (and smallest).
- StephanTLavavej 5y agoMSVC has /O1 and /O2 (and /Os), but not /O3. See https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category?view=msvc-160 https://docs.microsoft.com/en-us/cpp/build/reference/compile... . (I work on MSVC's STL.)