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

Drug update: overactive bladder.(Clinical Rounds): An article from: Skin & Allergy NewsThis digital document is an article from Skin & Allergy News, published by International Medical News Group on April 1, 2004. The length of the articl... Read More >
PATENTS.: An article from: Display Development NewsThis digital document is an article from Display Development News, published by Thomson Gale on May 1, 2005. The length of the article is 449 words. T... Read More >
Is carotid stenting primary treatment for extracranial carotid artery disease?(PRO & CON): An article from: Internal Medicine NewsThis digital document is an article from Internal Medicine News, published by International Medical News Group on January 1, 2005. The length of the a... Read More >