Feeds

Firefox 4 preview knocks back Jäger shot

Buzzed browser races rivals for JavaScript crown

Top three mobile application threats

Mozilla has released preview builds of Firefox 4 that include JägerMonkey, the new JavaScript engine extension designed to outpace rival engines from the likes of Google and Opera.

According to the open source outfit's latest SunSpider JavaScript benchmarks, JägerMonkeyed Firefox still trails all major competitors, but on the V8 benchmark, it has surpassed Microsoft's Internet Explorer 9 preview, and on both test suites, it's steadily gaining ground.

With Firefox 3.5, Mozilla juiced JavaScript performance with a compiler known as TraceMonkey, but not all JavaScript code is suited to Mozilla's "tracing" technique, which works to convert code loops into speedy assembly language. JägerMonkey aims to boost performance when tracing doesn't apply.

JägerMonkey is a method JIT compiler based on the Nitro assembler built for Apple’s open-source WebKit project, the same assembler used by the Google Chrome and Apple Safari browsers. TraceMonkey will continue to convert code loops into assembly code, but when this isn't possible, JägerMonkey will kick in, converting entire methods to assembly code.

Jagermonkey diagram

JägerMonkey borrows the Nitro assembler from WebKit

"While the technology inside TraceMonkey makes it faster than any other engine on certain programs (then and now), it doesn’t help other programs as much. And the web has grown more complex, with more and more JavaScript-intensive demos, apps, and games," reads a blog post from Mozilla man David Mandelin announcing the release of the JägerMonkey preview builds. "And the competition has been getting a lot tougher, with engines that could run fast on bigger and prettier web apps. We knew we needed another major upgrade for Firefox 4.0, to make us fast all around."

Mandelin says the project involved revamping the fundamental value type of Firefox's Javascript engine, which meant updating roughly 20,000 lines of code. He compares this to a "vascular system transplant." The new "whole-method" JIT compiler required about 23,000 lines of code, and it supports x86, x86-64, and ARM with an "almost entirely shared" compiler code base.

Mozilla director of web platform Chris Blizzard has said that Firefox 4's JavaScript performance will be "one generation" ahead of its rivals. But at least for the moment, Mandelin plays down benchmark numbers. "Those aren’t the main goal, but they are a really convenient target for us to aim at," he says. He adds that the new JavaScript engine will be "a little bit faster yet" by the time Firefox 4 officially arrives this fall.

The JägerMonkey preview builds are available for Linux, Windows, and Mac, including 64-bit Linux and 64-bit Mac. ®

Seven Steps to Software Security

More from The Register

next story
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
Mozilla fixes CRITICAL security holes in Firefox, urges v31 upgrade
Misc memory hazards 'could be exploited' - and guess what, one's a Javascript vuln
Put down that Oracle database patch: It could cost $23,000 per CPU
On-by-default INMEMORY tech a boon for developers ... as long as they can afford it
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Designing a Defense for Mobile Applications
Learn about the various considerations for defending mobile applications - from the application architecture itself to the myriad testing technologies.
Build a business case: developing custom apps
Learn how to maximize the value of custom applications by accelerating and simplifying their development.