Feeds

Firefox 4 preview knocks back Jäger shot

Buzzed browser races rivals for JavaScript crown

Beginner's guide to SSL certificates

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. ®

Security for virtualized datacentres

More from The Register

next story
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
'Windows 9' LEAK: Microsoft's playing catchup with Linux
Multiple desktops and live tiles in restored Start button star in new vids
iOS 8 release: WebGL now runs everywhere. Hurrah for 3D graphics!
HTML 5's pretty neat ... when your browser supports it
Mathematica hits the Web
Wolfram embraces the cloud, promies private cloud cut of its number-cruncher
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
Mozilla shutters Labs, tells nobody it's been dead for five months
Staffer's blog reveals all as projects languish on GitHub
SUSE Linux owner Attachmate gobbled by Micro Focus for $2.3bn
Merger will lead to mainframe and COBOL powerhouse
iOS 8 Healthkit gets a bug SO Apple KILLS it. That's real healthcare!
Not fit for purpose on day of launch, says Cupertino
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
WIN a very cool portable ZX Spectrum
Win a one-off portable Spectrum built by legendary hardware hacker Ben Heck
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Security and trust: The backbone of doing business over the internet
Explores the current state of website security and the contributions Symantec is making to help organizations protect critical data and build trust with customers.