Firefox 3.5RC2 Performance In Windows Vs. Linux
pizzutz writes "Andy Lawrence has posted a Javascript speed comparison for the recently released Firefox 3.5RC2 between Linux (Ubuntu 9.04) and Windows(XP SP3) using the SunSpider benchmark test. Firefox 3.5 will include the new Tracemonkey Javascript engine. The Windows build edges out Linux by just under 15%, though the Linux build is still twice as fast as the current 3.0.11 version which ships with Jaunty."
Firefox isn't slower because of ubuntu, it's slower because the microsoft's C compiler is better than gcc.
Do you even lift?
These aren't the 'roids you're looking for.
This proves that, um, Windows,er, Linux is....um...what the fuck does this prove again?
And why the fuck should I care if there's a 15% difference in performance of Firefox between those two OSes? I use my particular OS for reason that have nothing to do with how well Firefox runs on it.
That 15% could very well be measured in hours when the Slashtard coders get through with their Web 2.0 abominization of Slashdot.
The Windows version is compiled with PGO (profile guided optimization) while Linux versions aren't.
also worth mentioning is llvm. gcc-llvm has an llvm backend doing code generation (which sometimes beats standard gcc, sometimes doesn't). There's also a non-gcc c/objective c/c++ compiler, clang, in development, though it may be a couple years before c++ support is complete.
Do you even lift?
These aren't the 'roids you're looking for.
Why can't they just use Intel's compiler?
Go green: turn off your refrigerator.
This is a myth.
I have barely ever noticed a performance increase when comparing code compiled with equivalent options on GCC, ICC and MSVC.
Quite the contrary, GCC is faster more often than you'd think.
Visual C is not "compiler specifically implemented for x86". It supports (and supported in the past) lots of architectures -- x86, x64, Itanium, Alpha, MIPS (and MIPS16), PowerPC, ARM (and Thumb), Hitachi SuperH, Infineon TriCore, several other embedded CPUs as well.
Of course x86/x64 are main targets, but my guess it is so for GCC as well :-)
Believe me, we'd really love to make Linux perform as well as Windows! We spent a lot of time in Firefox 3 with libxul reducing startup time by making symbols hidden and reducing the number of runtime relocations...