Home | Articles | Serious JavaScript performance boost for Firefox 3.1
-->

Serious JavaScript performance boost for Firefox 3.1

Published: August 22nd, 2008
  •  Print

Mozilla has just landed a new JavaScript optimization feature to Firefox 3.1 development code base (Shiretoko) that effectively enhances JavaScript-based web applications performance by a 2X - 20X fold compared to the already-severely-pumped-up Firefox 3, according to a variety of JavaScript performance tests ran and published by Mozilla’s Brendan Eich.

TraceMonkey tracks the JavaScript code your page is running, identifies pieces that are repeatedly used, and translates that code (interpreted) to an a machine ready state (compiled) that runs much faster the next time it is needed. As this repetitive executions (loops) are very common, the performance gains are huge.

But the best way to understand it is to see it in action. Mozilla’s VP of Engineering, Mike Schroepfer, created a simple JavaScript image editor that lets you adjust a picture’s contrast and brightness with a couple of sliders. With a today’s nightly and TraceMonkey disabled (currently the default as it is still buggy), there is a very noticeable delay while sliding. Turn it on (javascript.options.jit.content = true in about:config) and the thing works just as you would expect: smoothly.

Seems like Firefox 3.1, targeted for first quarter 2009, has just got its must-upgrade feature. With just a couple of months in the wild, Firefox 3 is already starting to look old.

For test details and TraceMonkey background, check Brendan Eich’s TraceMonkey: JavaScript Lightspeed.

You can leave a response, or trackback from your own site.

3 Comments on “Serious JavaScript performance boost for Firefox 3.1”

Subscribe to this post's RSS feed

  1. 1. simon
    August 23rd, 2008 at 4:53 am

    what’s up with this?:

    TraceMonkey: JavaScript Lightspeed

    [Reply]

  2. 2. Carter
    August 23rd, 2008 at 1:34 pm

    In what way do you think Firefox 3 is already starting to look old?

    [Reply]

  3. 3. Yeah
    August 24th, 2008 at 3:07 am

    Firefox 3 is also Firefox 3.1
    Firefox 3.0 =! Firefox 3.1

    [Reply]

7 Trackbacks/Pings (Trackback URL)

  1. 1. Melhoramentos de performance sérios no Firefox 3.1 | Open Mania August 23rd, 2008 at 12:04 pm
  2. 2. Google Chrome joins Browser Wars II - Mozilla Links September 2nd, 2008 at 12:07 pm
  3. 3. Firefox 3 Alpha 2 reviewed - Mozilla Links September 5th, 2008 at 10:11 pm
  4. 4. Google Chrome Sucks – pwnt.be September 14th, 2008 at 3:03 pm
  5. 5. 2 Betas Planned For Fx 3.1 « Firefox Extension Guru’s Blog September 18th, 2008 at 11:25 pm
  6. 6. Odprta koda - Prosto programje » Firefox 3.0.2 - nova različica September 24th, 2008 at 2:26 am
  7. 7. Firefox 3.1 beta 1 released and reviewed - Mozilla Links October 14th, 2008 at 5:07 pm

Leave a Reply




Comment:

Firefox 3

Links

  • Online Shopping
  • Document Scanning Services
  • 5GB free for your music
  • Voucher Codes & Discount Codes
  • CyberDefender Software
  • Recent Entries

    Recent Comments