Sign in with
Sign up | Sign in

Firefox JägerMonkey JavaScript Engine Beats IE9

By - Source: Tom's Hardware US | B 29 comments

Mozilla seemed to have lost its mojo and seemed to have been clearly out-resourced by Google and Microsoft.

Within 18 months, Firefox dropped from the leading JavaScript browser to dead last among the most popular browsers: IE, Chrome, Safari and Opera made huge advances and surpassed Firefox. The latest developer version of Firefox shows that Mozilla is back: For now, Firefox has caught up with Microsoft’s browser and is within reach of Opera and Safari.

How quickly the times can change. Four months ago, Mozilla made a surprising statement that it would roll out a new version of Firefox this year. Mozilla has been on a schedule to roll out a major version of its browser once a year since 2007, but Firefox appeared to be a risky quick shot. The Firefox man in charge, Mike Beltzner, pitched the new Firefox as a new browser that would be substantially faster than 3.5 and that would get a reduced GUI that would build on the perception that less menu can create the impression of a faster browser as well.

Today, we have Firefox 4.0 Beta 5, which just got default hardware acceleration and a menu update. It is about 30% faster in JavaScript disciplines than Firefox 3.6.x. Firefox 4 has plenty of new features, most notably the Panorama (or Tab Candy) visual tab organizer, but the development is slightly off track and is slightly delayed. Beta 5 was supposed to be the feature freeze release, but it seems that Beta 6 will actually be the browser that will reveal all new features in Firefox 4.

Overall, Mozilla planned to roll out seven betas of Firefox 4, but now it seems that we will get a total of nine, as major decisions are still to be made. For example, Mozilla currently considers dropping support for browsers that do not support Intel’s SSE2. It is somewhat unclear what that will mean, as Mozilla currently says that only original Athlon and 386-processors without SSE2 and older will be affected. However, SSE2 was not introduced by Intel until the Pentium 4 in late 2000. There is no final decision on this matter yet and we will have to wait and see how this works out. The RC1 release of Firefox 4 is planned for the second half of October.         

What's missing in the current beta is especially the new JavaScript engine. Beta 5 still runs on a (vastly improved) TraceMonkey engine, while Mozilla has been working on JägerMonkey, a new method Just-in-Time (JIT) JavaScript compiler for SpiderMonkey (which was used up to Firefox 3.5, which introduced TraceMonkey.) Earlier this year, Mozilla said that TraceMonkey does not have enough potential anymore to compete with the fastest browsers out there – which became clear when even Microsoft raced past Mozilla with its IE9 platform previews. According to Mozilla’s Dave Mandelin, the organization decided to go back to the drawing board and used eight months to do the basic research, reverse engineer other engines, analyze them and redesign and debug a new JIT.

JägerMonkey is the result and we have seen lots of progress over the past month on Mozilla’s Are We Fast Yet chart. But seeing the real thing is always different than reading reports, especially since we know that those browsers can behave very differently on various platforms. I have covered browser JavaScript performance now on a virtually weekly basis since the release of Firefox 3.0 and this new JIT is by far the most critical version for Mozilla so far. Yesterday, Firefox JS became available as an experimental Beta 6-pre version of Firefox 4 that integrates JägerMonkey for the first time.
So let’s have a look. I pitched recent browsers against each other to see where we stand. Here are the test results.

The performance increase of Firefox JS compared to Firefox 4 Beta 5 is substantial. The speed gain in Google V8 is more than 100% and almost 20% in Sunspider. Interestingly, Firefox JS now beats IE9 PP4, which will be released as IE9 Beta on September 15. I anticipate that Microsoft has fine-tuned IE9 again and that the browser will come in much closer to 400 ms in its first Beta. For now, however, Mozilla has caught up and it appears that it has every opportunity to reach 400 ms in this particular benchmark as well.

Safari and Opera could be in reach of Firefox as well, but Chrome may be too far away. Subjectively Firefox 4 JS feels more nimble that Beta 5 and seems to be much more responsive. Labeled as a Minefield browser, it is a developer version that is less stable than the Betas and is most certainly missing key features. For example, the hardware acceleration implementation is apparently different from the version in Beta 5. In Microsoft’s Psychedelic Wheel test, the Beta 5 scores 1769 revolutions, while the JS browser came in at 1075. IE9 PP4, by the way, scored 1794 revolutions and the latest Chrome 7 nightly build from this morning only 12.  

Mozilla’s Rob Sayre has posted Firefox JS benchmarks as well. The charts show how different the results can be on different systems. Running on his Lenovo Thinkpad X20, Firefox JS is slightly behind IE9 PP3 and Opera 10.61 is listed as the fastest browser.

It is important to note that many different components are responsible for the overall browser performance and if we believe Microsoft, then JavaScript is responsible for only 20-30% of the speed you see on your screen. That may be even less in the future as hardware acceleration becomes more important. So take these results with a grain of salt, even if Sunspider appears to have become the de-facto benchmark to indicate the performance capability of a browser today. The bottom line is that Firefox 4 will, as far as we can see now, will keep most of its promises and should be a very capable and competitive browser when it is released later this year.

The one promise I am not buying is the claim that the JavaScript performance of Firefrox 4 will match or surpass all of Firefox’ rivals. But, at this level, this may be irrelevant anyway. 

Display 29 Comments.
This thread is closed for comments
Top Comments
  • 13 Hide
    crossbow82 , September 10, 2010 5:53 PM
    I'd use it just because it's called JägerMonkey... that and it's Friday. No but really, that's awesome to see continual browser improvements from various companies. I'm all for it.
  • 13 Hide
    Anonymous , September 10, 2010 6:38 PM
    be nice if you omit IE8 from the first chart seeing as it makes it harder visually to discern the actually difference between the other browsers, seriously you added an extra 4000 grades just for 1 browser.......
  • 12 Hide
    jomofro39 , September 10, 2010 6:05 PM
    JägerMonkey, that is the best name I have ever heard. I hope other companies follow suit and we soon see a SvedkaApe, PatronGorilla, and whole hoard of CaptainMorganOrangutans. But seriously, here's to good competition upping the ante, once again.
Other Comments
  • 13 Hide
    crossbow82 , September 10, 2010 5:53 PM
    I'd use it just because it's called JägerMonkey... that and it's Friday. No but really, that's awesome to see continual browser improvements from various companies. I'm all for it.
  • 0 Hide
    sliem , September 10, 2010 5:56 PM
    Should have called it Firefox Jabberwocky.
  • 2 Hide
    SchizoFrog , September 10, 2010 6:05 PM
    Even my browser is going to be on Jagermeister... YAY!
  • 12 Hide
    jomofro39 , September 10, 2010 6:05 PM
    JägerMonkey, that is the best name I have ever heard. I hope other companies follow suit and we soon see a SvedkaApe, PatronGorilla, and whole hoard of CaptainMorganOrangutans. But seriously, here's to good competition upping the ante, once again.
  • 0 Hide
    silentq , September 10, 2010 6:11 PM
    are they gonna add some RedBull on Monday to get some more productivity into it?
  • 13 Hide
    Anonymous , September 10, 2010 6:38 PM
    be nice if you omit IE8 from the first chart seeing as it makes it harder visually to discern the actually difference between the other browsers, seriously you added an extra 4000 grades just for 1 browser.......
  • 3 Hide
    willgart , September 10, 2010 6:50 PM
    Javascripting is not everything on a site. there is other component to consider. so fighting all the time just on this doesn't represent the reality.

    its like a CPU or a GPU, until you do comprehensive tests using different games or applications, you don't know which one is better.
    Also, having the fastest browser in the world mean nothing if the web server can't provide the right speed! (and your ISP too)
  • 1 Hide
    zak_mckraken , September 10, 2010 6:51 PM
    So you're telling me a Beta browser is better than another Beta browser? Not much to be excited about... for now. I'll be glad to read the same benchmarks once they actually go live.

    And I also hop on the naming bandwagon. Everything is better when it has a kickass name. I'll use anything with Ninja, Shark or Jack Daniels in it.
  • -1 Hide
    iamtheking123 , September 10, 2010 6:56 PM
    IMO anyone who cares about javascript speeds won't be using IE9 on principle alone.
  • -1 Hide
    tolham , September 10, 2010 7:06 PM
    competition is good!
  • -4 Hide
    azetec , September 10, 2010 7:14 PM
    Dropping support of CPU's without SSE2 would be a bad idea since I still use an old PC with an Athlon XP CPU which has only SSE 1 support, and no SSE 2 support, and no money to buy a new one, help please
  • -2 Hide
    kamen , September 10, 2010 7:17 PM
    I've done the Jagermonkey shuffle several times myself, but I always seem to regret it the next day.
  • -1 Hide
    ares1214 , September 10, 2010 7:21 PM
    Jagermonkey, the autrian primate sniper :p 
  • 0 Hide
    nevertell , September 10, 2010 7:41 PM
    They should rewrite their linux "port".
  • -3 Hide
    ventond , September 10, 2010 8:08 PM
    "Mozilla currently considers dropping support for browsers that do not support Intel
    ’s SSE2."

    heh? Since when does Mozilla support browsers? Support processors perhaps?
  • 0 Hide
    Dameon_Bananaman , September 10, 2010 8:13 PM
    without sounding like a complete twat but ffs its just a web browser. i dont care how many ms it loads a page up quicker or whatever. if i can see a webpage and it dnt take too long loading up im happy!
  • 2 Hide
    Maxor127 , September 10, 2010 8:50 PM
    Indeed. I don't care about millisecond differences in speed. I use a browser based on features, security, interface, and most importantly W3C standards compliance. Probably the only performance aspect I'd care about is how much memory a browser uses.
  • 0 Hide
    kilthas_th , September 10, 2010 9:49 PM
    I know most don't care about beta browsers, but it's interesting for some of us to see them put a JägerMonkey into cyberspace.
  • 0 Hide
    marcusmurphy , September 10, 2010 10:23 PM
    How come no Futuremark PeaceKeeper?
  • -4 Hide
    WarraWarra , September 10, 2010 10:59 PM
    LOL IE6 was faster than most of my 3.6.3 to 3.6.8 versions of firefox with 3.6.5 being so slow you could barely call it a browser more like a snail petrified and stuck in the same place.

    4.0B4 was decent just hated the stupid right click 2nd option opening a new window instead of used to new tab.

    Irritating that I have to get add-ons to block spyware from google and other sites that I would never visit and that loads 90% of what I do not want in my browser experience. The website owners do not get enything out of it so why torture me with 90% of what is not on or related to the website I want to look at ?

    4.0B4
    I don't like the Tab monkeying around junk if the have a classic appearance and leave the Vista / win7 ugly tabness out then sure I woudl use it. I literally wanted to beat my pc with a hammer and never use a pc again after 4.B4 tab + right click stupidity.

    Using K-Meleon java bugs / issues and all but fast just like good old Firefox 1.* and 2.*

    Is there any reason why a web browser needs to have a size of 8mb and use upto 127mb ram just to type this message ????
    Damn not even my poorly coded online ubisoft games use as much ram as firefox based or firefox 3.6* versions !

    Why not keep firefox as a webbrowser and not a bull****er loader like itunes and then load modules / add-ons as extra junk by the users intervention.

    Mozilla stop smoking pot and get back to a web browser not a junk bloatware slow as snot loader.
Display more comments