Turn on JavaScript JIT in Firefox 3.1

1

Posted on : 08/24/2008 | By : Jimmy Vu | In : Development News

Mozilla has just introduced a new JavaScript optimization feature to Firefox 3.1 development code base (Shiretoko) that well enhances JavaScript-based web apps performance by a 2x – 20x fold compared to the Firefox 3.0, according to JavaScript performance tests ran and published by Mozilla’s Brendan Eich.

I’m extremely pleased to announce the launch of TraceMonkey, an evolution of Firefox’s SpiderMonkey JavaScript engine for Firefox 3.1 that uses a new kind of Just-In-Time (JIT) compiler to boost JS performance by an order of magnitude or more.

Here are some of the charts from Brendan’s blog:

assorted-benchmarks

Assorted benchmarks

SunSpider micro-benchmarks

SunSpider micro-benchmarks

However the best way to evaluate it is to see it in action via simple JavaScript image editor that lets you adjust a picture’s contrast and brightness with a couple of sliders created by Mike Schroepfer. By default, TraceMonkey is disabled (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 like charm, very smoothly.

JavaScript Image Editor

JavaScript Image Editor

Going into significant detail on how all of this came about, Brendan notes some key points:

Read the rest of this entry »

Recommended Reading

Oxytrol. (New & Approved).(Brief Article): An article from: Family Practice NewsThis digital document is an article from Family Practice News, published by International Medical News Group on April 15, 2003. The length of the arti... Read More >
PhRMA web site helps low-income patients find free medications.(Practice Trends)(Pharmaceutical Research and Manufacturers of America)( www.helpingpatients.org): An article from: Skin & Allergy NewsThis digital document is an article from Skin & Allergy News, published by International Medical News Group on June 1, 2004. The length of the article... Read More >
The Center for Creative Leadership Handbook of Leadership Development (J-B CCL (Center for Creative Leadership))The Center for Creative Leadership Handbook of Leadership Development (J-B CCL (Center for Creative Leadership))Praise for The Center for Creative LeadershipHandbook of Leadership Development

"The most authoritative, comprehensive, and practical source for dev... Read More >