Mozilla turbocharges Firefox, touts major speed gains

'TraceMonkey' JavaScript interpreter set for upcoming Firefox

Mozilla said Friday it has added the fruits of a two-month JavaScript turbo power project to the latest preview of its next browser, Firefox 3.1, that boosts some benchmark speeds by nearly 40 times over Firefox 3.0.

The new Mozilla JavaScript interpreter is also about 2.4 times faster than the newest interpreter slated for Apple's Safari, according to benchmark tests.

Dubbed "TraceMonkey," the revamped JavaScript engine will make possible Web-based applications that are today too sluggish to be acceptable, said Mike Shaver, the company's interim head of engineering. "We're making JavaScript disappear as far as performance is concerned," said Shaver, who pointed out a photo-editing demonstration that his predecessor, Mike Schroepfer, put together to strut TraceMonkey's speed.

"One example is to use the browser as a very simple PhotoShop," said Shaver. "[Editing an image requires] things that, for each step, takes the better part of a second. That's not a great user experience. But [with TraceMonkey], now you have something that comes close to interactive performance."

Shreopfer posted a video that showed side-by-side comparisons between Firefox 3.0 and Firefox 3.1 with TraceMonkey on his blog Friday. Users can also run the simple application themselves using Firefox 3.0 or the latest version of 3.1.

For the moment, TraceMonkey has been disabled in Firefox 3.1, which is currently in alpha stage and slated to reach beta next month, but the faster JavaScript engine will be turned on at some point. "We are planning for it to be there in Firefox 3.1," said Shaver. "It won't have all the capabilities, there's more than a couple of months of work left, but we are targeting 3.1."

Mozilla has tentatively set the ship date of a finished Firefox 3.1 for late this year or early 2009.

Shaver and Brendan Eich, Mozilla's chief technology officer and the creator of JavaScript, both posted TraceMonkey's benchmark results on their blogs Friday. Eich, for example, noted that TraceMonkey's scores on SunSpider were between 1.8 and 37.5 times faster than Firefox 3.0, which itself boasted improved JavaScript speed.

Shaver acknowledged that benchmarks don't tell the whole story, but remains confident that users would find Firefox 3.1 with TraceMonkey much faster. "There's still a lot of room for improvement to benchmark JavaScript," he said. "[But] as an application developer, the only benchmark you care about is how [your application] runs."

Mozilla's goal with TraceMonkey is to push JavaScript execution speeds closer to that of applications written in native code, such as compiled C++ code. "There's no theoretical reason why it can't be as sharp and approach native code speeds in two to four years," Shaver predicted.

TraceMonkey is based on a technique developed at University of California -- Irvine called "trace trees," and builds on code and ideas shared with the open-source Tamarin Tracing project. Shaver credited Eich; Andreas Gal, a project scientist at UC Irvine; David Anderson, a summer intern; and others for their work on the fast-track project.

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.
Gregg Keizer

Gregg Keizer

Computerworld
Show Comments

Cool Tech

Toys for Boys

Family Friendly

Stocking Stuffer

SmartLens - Clip on Phone Camera Lens Set of 3

Learn more >

Christmas Gift Guide

Click for more ›

Brand Post

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Aysha Strobbe

Microsoft Office 365/HP Spectre x360

Microsoft Office continues to make a student’s life that little bit easier by offering reliable, easy to use, time-saving functionality, while continuing to develop new features that further enhance what is already a formidable collection of applications

Michael Hargreaves

Microsoft Office 365/Dell XPS 15 2-in-1

I’d recommend a Dell XPS 15 2-in-1 and the new Windows 10 to anyone who needs to get serious work done (before you kick back on your couch with your favourite Netflix show.)

Maryellen Rose George

Brother PT-P750W

It’s useful for office tasks as well as pragmatic labelling of equipment and storage – just don’t get too excited and label everything in sight!

Cathy Giles

Brother MFC-L8900CDW

The Brother MFC-L8900CDW is an absolute stand out. I struggle to fault it.

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?