Skip the navigation
News

Mozilla turbocharges Firefox, touts major speed gains

'TraceMonkey' JavaScript interpreter set for upcoming Firefox

By Gregg Keizer
August 24, 2008 12:00 PM ET

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

The new Mozilla JavaScript interpreter is also about 2.4 times faster than the newest interpreter slated for Apple Inc.'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, Mozilla'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 show off 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, take 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."

In his blog on Friday, Shreopfer posted a video that showed side-by-side comparisons between Firefox 3.0 and Firefox 3.1 with TraceMonkey. 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 is 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 those of Firefox 3.0, which itself boasted faster JavaScript speeds than its predecessors.

Shaver acknowledged that benchmarks don't tell the whole story, but he remains confident that users will 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 it 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.

"We really started work on this 51 days ago," Shaver said Friday. Gal, who took a summer leave of absence from UC Irvine, received particular kudos. "He was like an intern on steroids," Shaver said.

Other browser developers, especially those working on WebKit, the open-source browser engine used in Apple's Safari, have bragged this year of making significant speed improvements in JavaScript execution. In June, for instance, WebKit programmers announced a new JavaScript interpreter, code-named "SquirrelFish," that it said was 1.6 times faster than the interpreter used in the current Safari 3.1 browser.

"We can't affect the performance of other browsers," said Shaver when asked why Mozilla didn't do side-by-side comparisons with other browsers' JavaScript interpreters as it touted TraceMonkey. "All browsers have improved their JavaScript speed. We focused on our tests."

Shaver said he was sure that others would dive into comparative tests. That was an easy prediction, because also on Friday, Mason Chang, a graduate student at UC Irvine who worked with Gal, put the interpreters head-to-head. "If you do the aggregate speedup, which is the speedup for each test divided by the number of tests, it is about 2.4x faster," said Chang, who posted results from WebKit's own SunSpider benchmark test suite.

The Firefox 3.1 builds with TraceMonkey included but disabled can be downloaded from Mozilla's developer site.

Read more about Web 2.0 and Web Apps in Computerworld's Web 2.0 and Web Apps Topic Center.



Additional Resources
Forrester Consulting - Optimizing Users and Applications in a Mobile World
WHITE PAPER
Solving application issues over the WAN requires careful consideration. Based on their independent research, Forrester Consulting offers recommendations on how to tackle application performance issues, insufficient bandwidth and the inability to quickly restore users in a disaster.

Read now.

Security KnowledgeVault
WHITE PAPER
Security is not an option. This KnowledgeVault Series offers professional advice how to be proactive in the fight against cybercrimes and multi-layered security threats; how to adopt a holistic approach to protecting and managing data; and how to hire a qualified security assessor. Make security your Number 1 priority.

Read now.

Cut Communications Costs Once and for All
WHITE PAPER
New IP-based communications systems are being deployed by small and midsized businesses at a rapid rate. Learn how these organizations are enabling faster responsiveness, creating better customer experiences, speeding office or mobile interactions, and dramatically reducing existing communications costs.

Read now.

Web 2.0 and Web Apps White Papers
Why Business Ethernet Services?
Everybody's heard the cliché, "the network is your business." But that's not going to help you choose the best wide area networking service...
Overcome Top 7 Admin Challenges of Active Directory
As Active Directory's role in the enterprise has drastically increased, so has the need to secure the data. Gain insight on creating repeatable,...
Insiders Can Ruin Your Company. Take Action.
Did you know that 80 percent of threats to an organization come from the inside? The threat from insiders is often overlooked in...
Top Solutions and Tools to Prevent Devastating Malware
Custom malware frequently goes undetected. According to Forrester Research, the best way to reduce risk of breach is to deploy file integrity monitoring...
Streamline Compliance and Increase ROI
Streamline, simplify, and automate compliance related activities; especially those that impact multiple business units. This white paper from NetIQ, outlines solutions that will...
All Web 2.0 and Web Apps White Papers
Web 2.0 and Web Apps Webcasts
Optimizing Networks for the Cloud
Join guest speaker, Rohit Mehra, IDC Director of Enterprise Communications Infrastructure, to explore current trends, discuss best practices for optimizing Data Center and...
Apps QuickStart Series Part 2: Designing and Deploying SQL Server on VMware vSphere
Download this webcast to learn about the design considerations for virtualizing SQL workloads, performance and scalability information and high-availability options, as well as...
Apps QuickStart Series Part 1: Designing and Deploying Exchange 2010 on VMware vSphere
Download this webcast to learn the virtual hardware design considerations for Exchange 2010, deployment using the building block approach, options for high-availability and...
Customer Spotlight: How IPC The Hospitalist Company Implemented Oracle on VMware
Have you been looking to hear about customer's experiences with the new VMware vCenter Site Recovery Manager product? View this webcast to learn...
Virtualize Business-Critical Applications with Confidence
Virtualizing business-critical applications has become a key focus for organizations as they move along their virtualization journey. With the launch of VMware vSphere®...
All Web 2.0 and Web Apps Webcasts
Newsletter Sign-Up

Receive the latest news test, reviews and trends on your favorite technology topics

Choose a newsletter
  1. View all newsletters | Privacy Policy
IT Jobs