Industry


Ads by TechWords

See your link here


Subscribe to our e-mail newsletters
For more info on a specific newsletter, click the title. Details will be displayed in a new window.
Computerworld Daily News (First Look and Wrap-Up)
Computerworld Blogs Newsletter
The Weekly Top 10
More E-Mail Newsletters 

Web browser dragster races: Firefox 3.1 beta vs. Chrome beta

I like Chrome, Google's beta Web browser, a lot. It boasted the fastest Web-rendering engine I'd ever seen, until now. Starting last night, there's a new Web speed-demon, Firefox 3.1 beta 1.

I know, I know. Some people aren't seeing this speed boost. My colleague, John Brandon, found that "Compared to Chrome, in testing my most frequently visited sites, Firefox 3.1 now lags well behind Chrome." Brandon's right. For daily Web browser visits, Chrome is still faster.

The blame for that goes, from what I can see, to the fact that Firefox 3.1 beta has a lot more beta error-checking code in it than does Chrome. Before either one goes gold that code will be stripped out.

While I was looking under the new Firefox beta hood though at Firefox's new JavaScript rendering engine, TraceMonkey, I saw killer performance that leaves Chrome's V8 JavaScript engine eating its dust.

By default, Mozilla hasn't turned on TraceMonkey, but since I don't know of any show-stopping errors in TraceMonkey, I switched this speed-booster on. You can do this yourself by editing about:config and setting the javascript.options.jit.content to true. For more on how to tweak Firefox for maximum performance and how to edit about:config, check out Serdar Yegulalp's Hacking Firefox. It's a must for serious Firefox speed freaks.

Speaking of speed, let's get down to the numbers. I installed Firefox 3 Beta 1 on an older Gateway 503GR. This PC uses a 3GHz Pentium IV CPU, 2GB of RAM, an ATI Radeon 250 graphics card, and a 300GB SATA (Serial Advanced Technology Attachment) hard drive. On this, I was running XP SP3. I also ran Firefox 3 Beta 1 on my main openSUSE 11 PC, but since Chrome still doesn't run natively on Linux, I tested both browsers on the XP computer.

I then put both browsers, and some others, to the SunSpider JavaScript benchmark test. The results? Last place went to IE 7 with 59,694.3 milliseconds; Firefox 3.03 came in third with 11,249.1 milliseconds; Chrome came in second with a zippy 3,621.8 milliseconds, and Firefox 3.1 Beta 1 easily took first prize with 2,596.4 milliseconds.

That's great, but it doesn't mean I think you should switch Web browsers today. The best Web browsers today are beta browsers and that means they have their share of quirks.

For example, while I've made Chrome my daily Windows browser, it does have some nasty bugs if you try to write with it in a blog or the like. Since I almost never write directly into a Web page I can live with that, a lot of people couldn't. On the Firefox 3.1 side, I'm finding that the Web browser does slow down on some CSS (Cascading Style Sheets) heavy pages

I suspect that the blame for that goes to Firefox's reworked Gecko layout engine, which handles HTML page rendering. The new Gecko comes with improved support for CSS 2.1 and CSS 3 and, again, what appears to be a lot of debugging code. I should also note in passing that Firefox 3.1 broke every Firefox extension that I normally use.

I see both next-generation browsers as extremely promising works in progress. Best of all, since both are open source, they'll be sharing speed tricks as they continue to develop.

Neither is ready for Joe Laptop-packer yet, but if you want to get a taste of what really fast Web-browsing is like, you should try both of them. And, just think: both of them are only going to get faster, a lot faster, before they go final.

What People Are Saying

Jeez - Louise:

My browser can beat your browser. My 10 year old granddaughter can beat-up your browser's kid and she's smarter too. Squirrel this and Java that. My weather's better than yours. Have ya'all not got something better to do? I want a browser to crash very little, be compatible with the sites I need to get to (which are pretty common), render my three web sites as I wrote them, without a bunch of extra programming and be a browser that's not the front-end of the largest department store in the world (re:cut the ads guys). This thread was moot! Who runs a clean installation, without add-on, on files specifically designed to prove whatever the designer wanted to prove. Jesus! Get a life!

Why does anyone care about JavaScript speed?

I have it turned off entirely more than 95% of the time, and when I do turn it on, it generally loads additional objects over the network, imposing a speed limit far below the raw javascript interpreter.

Faster is always nicer, but what exactly is the point of all this effort?

HTML rendering, now that's something I care about.

Just run this on firefox

Just run this on firefox 3.0.3 on Ubuntu 8.04 , similar spec box, and it blows those windows results into the weeds. Conclusive proof that windows is significantly slower than Linux at running this speed test ;-)

I didn't bother running it on the FF 3.1
beta1 as it would be far too embarrassing for the windows users.

============================================
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total: 3302.2ms +/- 0.7%
--------------------------------------------

Your claims of a similarly

Your claims of a similarly speced box mean nothing. Even Mozilla developer's will tell you that firefox is slower under linux.

Do the test on a dual boot system, otherwise your claim is absolutely worthless.

OPERA?

What about Opera? The new Opera 9.6 is sure to beat both of these browsers. So what if Tracemonkey beats v8. Squirrelfish extreme literally kills Tracemonkey. Anyway what's the point of this speed if I need 20 extensions in Firefox anyway which will enventually slow it down. I don't need extensions in Opera and if I need speed, Opera 9.6 is lightening fast but Safari 4 will definitely be the fastest.

Opera

Yeah.. I love opera... but how can you say it beats v8 or trace monkey. Or safari will be faster? Its just like saying, when IE8 will be fully released it will beat all other browsers in speed (that aint gonna happen btw)
Please give results rather than speculations.

Adding on

Oh yeah a better source is http://www.reddit.com/r/programming/comments/72ash/squirrelfish_is_now_faster_than_v8_and_tracemonkey/

No mere speculations actual facts.

NO Speculations

No speculations buddy. Squirrelfish extreme has been tested to be faster than tracemonkey. I am not going to waste my breath so lets get to some sources: http://webkit.org/blog/214/introducing-squirrelfish-extreme/

*cough* Actually Firefox 3.1

*cough*
Actually Firefox 3.1 with Spidermonkey turned on is 3.26 times faster in executing JavaScript than the current version of Opera 9.6.

Just measured on my computer. Firefox significantly beats Opera in 25 out of 26 categories (one category, binary-trees, has them almost equal).
Do it yourself on http://www2.webkit.org/perf/sunspider-0.9/sunspider-driver.html

Be fair

Thats one benchmark why don't you try more? Anyway, Firefox 3.1 is in beta(Bugs Exist Try Another) and the Opera team is working on the Opera 10. Wait till Opera 10, then compare them, anyway Opera 9.6 was only supposed to be a minor improvement to 9.52, why don't you keep it fair and let the Opera team develop the new Peregrine engine.