Firefox 3.5RC2 Performance In Windows Vs. Linux 240
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."
Don't benchmark it on Ubuntu (Score:3, Interesting)
Ubuntu typically has everything but the kitchen sink running in the background; it's even worse than XP for frivolous defaults.
Get Slackware, or something else minimalistic, where you're likely to have a marginal amount of memory left after the operating system and residents are loaded in. ;)
Re:Don't benchmark it on Ubuntu (Score:5, Insightful)
Re:Don't benchmark it on Ubuntu (Score:4, Insightful)
Re:Don't benchmark it on Ubuntu (Score:5, Informative)
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 :-)
Re: (Score:2, Insightful)
Actually, in most cases one would be better off with a Swiss Army type knife than a Bowie knife. Even on a large animal, parts of the skinning process are delicate and take a light touch, and the smaller blades are better at that. And then get to smaller animals - may as well just beat that rabbit with a rock as use a Ka-Bar. In addition, the saw blade of a SA knife is handy for cutting cartilage, etc.
A
Re: (Score:3, Funny)
Wait, is it a zombie meteor?
I'm confused.
Re: (Score:2, Insightful)
I am shocked and amazed that the company which destroyed all competing commercial compilers by hiring their best developers away now has a really good compiler.
Re:Don't benchmark it on Ubuntu (Score:5, Insightful)
Re:Don't benchmark it on Ubuntu (Score:4, Informative)
It will depend on what compiler settings were used to build the glibc library, what architecture it was tuned for, whether or not the glibc library is targeted to the specific version of the kernel you are using. It also depends on what options were used to build the companion libraries, as well.
Also, the last time this was discussed on slashdot, I seem to remember that it was Profile Guided Optimisation (PGO) that helped FF on Windows. This would allow the compiler to better structure the machine code to keep as much of the program running in the CPU cache as possible (by pre-loading branches in conditional statements that are executed more frequently).
Re:Don't benchmark it on Ubuntu (Score:4, Funny)
It's because it's an interesting post, while your previous one was flamebait.
Re:Don't benchmark it on Ubuntu (Score:4, Informative)
Re: (Score:2, Interesting)
So how hard is this to test? Anyone want to run firefox win32 binaries on linux with WINE? Since the executable code will be faithfully executed by the CPU we can eliminate the compiler differences from the equation.
Somebody else do it. :) I'm busy.
Re:Don't benchmark it on Ubuntu (Score:5, Insightful)
They also have an easier job. MSVC doesn't need to address as many architectures as GCC does. IIRC, there is no MSVC for s/390
Re: (Score:3, Informative)
improving performance on its most popular platforms if they want to remain relevant...
You don't understand, GCC's portability is the reason for its very existence. Thats not optional. GCC has got more than 20 backends (architectures) and 8-10 frontends (languages) for goodness sake, no freakin' wonder its a little slower than MSVC/ICC, those latter guys only have to worry about 2 backends (x86/x86_64) and 2 frontends (C/C++).
GCC's wide portability is what currently guaranttees its relevancy. The minute GCC starts chasing clock cycles on the x86 platform (at the expense of the others), tha
Re: (Score:2)
Re:Don't benchmark it on Ubuntu (Score:5, Informative)
It has nothing to do with Ubuntu. Here are benchmarks from Firefox on Fedora: The issue is just as bad on Fedora: http://www.tuxradar.com/content/browser-benchmarks-2-even-wine-beats-linux-firefox [tuxradar.com]. That's only from a few months
A Good Test would be Slashdot (Score:2)
When did Slashdot become such a COW?
Seriously, I try to scroll and the delay is very noticable to the point of annoying. I can load other large pages and scroll no problem. Is it a javascript performance issue or Firefox?
Re:A Good Test would be Slashdot (Score:4, Insightful)
It's /. and it's sorry assed javascript, not firefox.
I went to preferences and chose 'classic view' to end this assclown behavior. That also ended the funny bars showing up in the middle of replies, the friend/foe icons plastered on top of comments, and other asshattery that was going on here also.
Re: (Score:2)
Yes, I'm certain that javascript is the problem. Slashdot has been unusable for me in mobile Safari on my 1st generation iPhone running version 2.0 of the software. The recent 3.0 upgrade made it usable, but still sluggish and with wierd random behaviour.
Re:Don't benchmark it on Ubuntu (Score:4, Insightful)
Re: (Score:2)
What's your point? Both are presented as general-purpose desktop operating systems (Slackware has some proponents who will try and claim that status for it too, but most of them wouldn't get very far). At the very least, try it on another "user-friendly" desktop-oriented distro.
Of course, they're also benchmarking on a 2-month-old build of Ubuntu (designed for the capabilities of modern hardware, and the features of a modern OS) vs. on a 92-month-old build of Windows. When XP came out, it said that its mini
But why? (Score:2, Interesting)
Is there any explanation as to why there is the difference?
Re:But why? (Score:5, Informative)
The Windows version is compiled with PGO (profile guided optimization) while Linux versions aren't.
Re: (Score:3, Interesting)
Re:But why? (Score:4, Interesting)
It feels just as slow. It's not just Gnome, it's slow in KDE and XFCE, too.
It is currently faster to run Firefox.exe under Wine than it is to run it native in Linux. (Yes I have tried this, the difference is night and day; it's just as fast in Wine as it is in windows).
Re: (Score:3, Insightful)
Re:But why? (Score:5, Interesting)
But when I mention Watcom C++ or other aspiring open source compiler here, a compiler that could possibly interest Linux community and spawn some competition for GCC then I get modded down often by people citing GCC is good enough for everybody and everything.
Re:But why? (Score:5, Informative)
Re: (Score:2)
Re: (Score:2)
Didn't gcc 4.0 strip out all the processor-specific optimizations?
No.
Re: (Score:2)
in the 90s, the Watcom compiler produced some of the fastest code out there. I know it was open source and is still used but it would be interesting to see what it could do in cases like this. If it's as good as it used to be, showing a 15% improvement and eliminating any speed advantage MS compilers might have would be eye opening for many who might consider gcc the only compiler for GNU/Linux software.
LoB
Re: (Score:3, Informative)
The king of C compilers is now ICC, with both MSVC and GCC way behind.
Re: (Score:2)
I guess it's still available, here:
http://www.openwatcom.org/index.php/Main_Page [openwatcom.org]
Re: (Score:2, Informative)
One can always use the Intel compiler on Linux. The performance of compiled code is comparable to that the Intel compiler produces with its Windows version.
Re: (Score:2)
Re:But why? (Score:5, Informative)
The problem is that GCC is pretty much the only compiler on Linux used these days and while the code is very nice C++ compilers on Windows produce a bit better code still.
In my experience, MS's VC++ produces not just a bit better code than gcc, but whole hocking meeses better code. VC++ is a damned good compiler, no matter what one might think about the company that generated it, while gcc is a merely decent one, no matter how much one might want to promote FOSS.
Re: (Score:3, Informative)
Re: (Score:2)
Re: (Score:2)
GCC _is_ good enough for a lot of stuff.
I would consider other compiler if it can compile all of my current distro to all architectures it supports. I find the x86 world remarkably boring,
Re: (Score:2)
Re: (Score:2)
Re: (Score:3, Informative)
Speaking of Bloat (Score:2, Troll)
How well does it perform on Vista?
Re: (Score:2)
This is a strange question. "Ok, so it's slow on mainstream Linux distros. I bet its slow on Vista, too!" I don't think it IS as slow on Vista, but I fail to see how that question does anything but try to say "Vista is just as bad as Linux."
Which, considering the fact that most geeks are more of the opinion that "Vista is a garbage can in comparison to the Taj Mahal/Buckingham Palace/[Insert Expensive Cool Place] that we call Linux," seems to be rather fruitless. Unless, of course, you're willing to adm
Re: (Score:2)
It does seem weird however to compare the performance of an app on the latest version of Ubuntu versus that of the previous (and now 8 year old) version of Windows. I'm sure it's even quicker on Windows 2000.
maybe linux carries some of this blame (Score:5, Insightful)
Re: (Score:2, Interesting)
Indeed, GCC just isn't as good at producing fast code as Microsoft or Intels compilers. This is probably the price you pay for having a fairly portable compiler such as GCC.
Re:maybe linux carries some of this blame (Score:5, Informative)
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.
Re: (Score:3, Informative)
Why don't you compile Tracemonkey with MSVC, GCC, and ICC, then run the sunspider benchmark. Make sure you have PGO turned on for the MSVC build.
Then you can go eat your hat.
GCC, ICC, MSVC (Score:5, Informative)
It is not a myth. ICC kicks the crap out of GCC. I didn't believe it until I had access to a computing cluster (Intel processors) with ICC installed. My ANSI C code runs about twice as fast using ICC than with GCC. Would you really expect anything different?
As always, YMMV, but I suggest that anyone who doubts this to download Intel's compiler (it's free as in beer) and try it out.
It's not open source, which does suck. But it does consistently produce faster code.
Re: (Score:3, Interesting)
Re: (Score:2, Informative)
Re: (Score:2)
Why is it important to use equivalent options?
If, for argument's sake, MSVC has a feature that's missing from GCC and this feature results in 5% faster code for some app -- well, more power to MSVC.
Re:maybe linux carries some of this blame (Score:5, Informative)
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...
Re: (Score:2)
And for not surrendering your first-born in order to have as many copies of it as you like.
Re: (Score:2)
Usually they profile the windows versions, and don't profile the linux ones.
Why? No clue.
Re: (Score:3, Informative)
Re: (Score:2)
Re: (Score:2)
My guess is Mozilla uses /GL option for visual c++ to do whole program optimization (if not, they should). Afaik this is currently not possible in gcc for C++ code except by cat'ing or #including all your files together into one.
In something huge like firefox there are probably a bunch of accessors and small functions that can be inlined to make a smaller *and* faster binary, if only the compiler can see the method implementation.
Where's the proof that GCC is solely to blame? (Score:3, Interesting)
I keep hearing people saying that it's all GCC's fault, but I have seen no real proof of that. Nor why a profit making company such as Mozilla can't throw devs at GCC to fix the underlying problem.
Re:Where's the proof that GCC is solely to blame? (Score:5, Interesting)
Why can't they just use Intel's compiler?
Re: (Score:2, Flamebait)
Re:Where's the proof that GCC is solely to blame? (Score:4, Interesting)
Re:Where's the proof that GCC is solely to blame? (Score:5, Informative)
That stopped being true back in 2007 when they released version 10.0.
Re: (Score:3, Insightful)
And thus, the lesson we have learned is that when you have the engineers who designed the architecture on hand, you can write a kickass compiler.
Re: (Score:3, Interesting)
Why can't they just use Intel's compiler?
Who is "they"?
Builds created by Mozilla get used but very few people compared to builds made by Ubuntu and other Linux distros. Perhaps you should contact them and as them why they're not using the Intel compiler.
Re: (Score:2, Informative)
Compilers aren't a simple problem that you can 'throw devs at'.
Maybe the Intel compiler could be used, but it breaks on anything non-trivial.
Or we can suck up the 15% performance degradation, especially if it is due to profiled optimisations on Windows, and just be happy that it is twice as fast in terms of Javascript, that might make Slashdot usable on a netbook again. It's certainly going to be faster than IE8 on Windows, and that is what most Windows users will be using in the end.
I only hope that Canoni
Re: (Score:2)
Re: (Score:3, Informative)
Yes.
real world vs testbench (Score:2, Offtopic)
What about other common cross platform software ? (Score:3, Insightful)
...but does Adobe Flash still hang up? (Score:2)
Re:...but does Adobe Flash still hang up? (Score:4, Informative)
The Javascript speed is not much of a factor. The one truly annoying thing with Firefox is the gawdawful Adobe Flash plug-in that hangs up at random, causing the whole browser to come to a screeching halt.
So why not get Flashblock or remove the Flash plugin?
Re:So what shall one use now? (Score:5, Informative)
This is nothing new. Running Windows FF in WINE is faster than using Linux native FF.
Re:So what shall one use now? (Score:5, Insightful)
Re: (Score:3, Informative)
> So why isn't the Moz Foundation investing in a better compiler?
This is a good question; I believe it's largely a matter of not having found anyone to pay to do the work, but I'm not privy to details on this stuff...
> what does this say about the performance of any app running under Linux compared to the
> Windows version?
That if performance is gated on computation and codesize, and the code identical, it'll tend to be faster on Windows....
Thing is, for most apps performance is gated on I/O or disp
Re:There! You have it! (Score:5, Insightful)
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.
Re: (Score:3, Interesting)
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.
People have been complaining or quite some time about poor performance on slashdot. What is it that shows this poor performance? I don't recall doing anything that isn't instantaneous here.
Re: (Score:3, Informative)
Re: (Score:2)
Iroincally enough, IE8 is faster at it than Firefox 3.0, too. One of the first things I noticed when the IE8 public RC (never mind the actual release) came out. Kinda sad...
Re: (Score:2)
I emailed Malda about this a year ago; we exchanged several emails; here is where it ended (I do not know how to check for this; I'm more EE than CS):
Is it possible that your ISP is transparently proxying your requests? A lot of providers do this, and very few people ever notice.
FYI.
Can anyone look into this?
Re:My problem with Firefox is this (Score:5, Interesting)
But on Linux, it is inherently ugly. The beast looks ancient and the fonts and dialogs make matters worse.
Widgets and dialogs, ok, that's your aesthetic preference. But fonts? After a couple of years using Ubuntu I hate how Windows fonts look pixelated even with Cleartype on. Freetype is much better at its job than Cleartype. If only because of that, I prefer the looks of Firefox on linux than on Windows.
Re: (Score:3, Funny)
There not pixelated, they have holes.
http://www.ecofont.eu/ecofont_en.html [ecofont.eu]
It's save electricity. See, MS is justing trying to be a "green" company.
Re: (Score:3, Insightful)
The horrible fonts were what drove me away from Ubuntu after I installed it recently, hoping to use it as my primary desktop. I'm sure you've managed to fix up your fonts somehow, but let me tell you, a default ubuntu install (from the 8.x series, haven't tried more recent) produced such an eyeball searing ugliness in FireFox that it almost single handedly convinced me that Ubuntu wasn't ready yet (for me). The fact that a few searches with Google reveal hundreds of various ways to improve the fonts actu
Re: (Score:3, Funny)
>Ask Apple or even Windows folks.
You have seen Safari, haven't you?
It puts the 'f' in fugly.
Re:My problem with Firefox is this (Score:5, Informative)
Firefox on Windows looks great/awesome/beautiful....name it. But on Linux, it is inherently ugly. The beast looks ancient and the fonts and dialogs make matters worse.
Folks, I am not trolling so have a look for yourselves and compare....
I'm running Windows XP and Ubuntu 9/04 side by side on similar laptops. Just to test, I looked at the main pages for Slashdot, Wikipedia (English), and Amazon, side-by-side.
My eyeball result of looking for differences between pages rendered with Firefox on Ubuntu 9.04 vs Windows XP:
Other than the issue for Amazon, the pages rendered look identical to me. The fonts for the menus look identical. I still disagree with the choice the mozilla team made to have the preferences/options menus with different titles in different locations for Linux versus Windows, but other than that, the UI seems consistent to me. The default GNOME theme for Firefox isn't as pretty as the new Firefox theme on Windows, but that's a minor aesthetic thing, and it's not ugly, it just isn't pretty.
Re: (Score:2)
Harm of looking good: opportunity cost (Score:2)
Or even then...How would a good looking Firefox harm Firefox?
If the time spent making firefox look good could be spent on other things, the harm of a good-looking firefox is that said other things are missing; they could be performance, stability, bug fixes, new features.
Now, I said "if". I'm not certain the condition is satisfied: if I'm working on performance-optimizing some application I run a lot, I'm not going to work on making it look pretty if I think it looks just fine. I figure people who like the performance just fine isn't going to move away from working
Re:My problem with Firefox is this (Score:5, Informative)
Firefox on Windows looks great/awesome/beautiful....name it. But on Linux, it is inherently ugly. The beast looks ancient and the fonts and dialogs make matters worse.
In Ubuntu 9.04 here, and I personally think the stock DejaVu fonts on Linux look quite nice. Actually prefer the traditional toolbar on Linux with Tango icons (tango.freedesktop.org) rather than the "enlarged back button" version found on Windows and OSX.
The only problem I see is the topic of this thread, i.e., performance. It's slow enough to feel slow, and the fact that most Linux distros run so well on old hardware makes the problem worse.
The bigger problem for the "Linux browsing experience" still seems to be Flash. Visiting a Flash-heavy site (like the horrible items produced by any given automaker) is a painful experience...it's bad enough that I'll typically crack open the MacBook. I find Flash sites consume an order of magnitude more CPU running natively in a Linux browser than they do running in a Windows XP VirtualBox instance hosted by the same Linux OS.
AdBlockPlus and FlashBlock are the only things that enable me to continue to use this computer for web browsing. It's somewhat of a sad state of affairs, given that it's more than quick enough to run multiple VirtualBox instances, Eclipse instances, and a GIMP instance with dozens of files open at the same time. But give it one web page with a few Flash advertisements, and you'll think you're on a Pentium 60.
Re: (Score:2)
So what is the problem Flash, or Linux?
Re: (Score:2)
So what is the problem Flash, or Linux?
Neither. Probably X Windows. (Yes, I know the correct name is "X Window System", but I don't care!)
Re: (Score:3, Informative)
Unlikely to be X. I can play normal videos just fine at full speed. It's only Flash that eats CPU and is slow.
Re: (Score:2)
Firefox on Windows looks great/awesome/beautiful....name it. But on Linux, it is inherently ugly. The beast looks ancient and the fonts and dialogs make matters worse.
Not really. It fits in with the rest of Gnome fairly well, and if you throw on the Linux equivalent of "Cleartype" the fonts are actually quite nice. Installing the "mscorefonts" that most distros have these days makes Firefox rendering between the two practically indistinguishable, aside from, again, that Clear/Freetype rendering beauty.
Re: (Score:2)
That and Ubuntu does its own recompile...they make changes. It's not Mozilla's build.
Re: (Score:2)
I doubt that Ubuntu has an official 3.5 RC package built, as of yet. The benchmark article, even suggests, they are still shipping Firefox 3.0.11 with Ubuntu 9.04. No matter how bleeding edge Ubuntu may seem, it is very unlikely that Canonical would ship a Beta version or Release Candidate of Firefox.
Re:I'm not sure about this (Score:4, Informative)
I run it and it works.
Re: (Score:2)
Re: (Score:3, Insightful)
Re: (Score:2)
I think GCC is not known for generating very optimized code. Windows tools, OTOH, can more or less optimize all they want because desktop Windows is a x86-only world.
Re:makes sense (Score:4, Funny)
... and anonymous users are dyslexic (tub onyl midly).