Contact Me By Email

Showing posts with label SpiderMonkey (JavaScript engine). Show all posts
Showing posts with label SpiderMonkey (JavaScript engine). Show all posts

Tuesday, March 22, 2011

First Look: Firefox 4 Web browser Review | Browsers & Add-Ons | Macworld



First Look: Firefox 4 Web browser Review | Browsers & Add-Ons | Macworld

For years, Firefox has trundled along at the back of the browser pack, a beast of burden laden with fancy features but lacking speed. Not anymore. Mozilla has released Firefox 4, and in our preliminary tests, the browser makes a huge performance leap forward.

On a 2GHz Core 2 Duo aluminum MacBook with 2GB of RAM, Firefox 4 roughly quadrupled Firefox 3.6.15’s speed in an XHTML rendering test and the SunSpider JavaScript benchmark. Its Acid3 score improved by 3 points (reaching 97 out of 100), and it gained more than 100 points out of 400 on its predecessor in an HTML5 compliance test (255 and 9 bonus points vs. 155 and 4 bonus points).

Against other browsers, Firefox 4’s XHTML and CSS rendering speed still trails the latest versions of Safari, Opera, and Chrome, and it lacks their perfect Acid3 scores. But its HTML5 compliance outscores Safari’s and Opera’s, and only slightly lags Chrome’s, and in the SunSpider test, Firefox 4’s JägerMonkey JavaScript engine beats everyone else.

Firefox 4 packs a few other happy improvements under the hood. It now offers full support for CSS3 transforms and transitions, and hugely enhanced support for CSS3 animations. Built-in hardware acceleration vastly speeds up page rendering; however, in a Mozilla-created “stress test,” my computer and browser only eked out 2 frames per second when attempting 3D transformations on multiple 2D images. Firefox 4’s superb support for WebGL 3D graphics, Google’s new WebM open source video codec, and OpenType font rendering left me much more impressed.

Firefox 4’s interface changes are a somewhat mixed bag. Tabs now top the URL bar, Chrome-style, and you can now jump directly to a tab by starting to type its name in the “awesome bar” –nice, but nothing major. I liked the “app tab” feature, which lets you shift Gmail, Google Docs, and other much-used Web apps into tiny, space-saving icon tabs at the far left of the tab list.

The ability to group tabs by dragging and dropping left me cold, though. You must switch to an entirely separate screen, and drag tabs one by one into groups. The whole process just added an extra layer of clutter and confusion to my browsing.

We’re working on a full review of Firefox 4. For now, Firefox 4 looks like a happy compromise between speed-demon performance and a polished interface.

[Nathan Alderman is a writer and editor in Alexandria, Va.]

Friday, November 12, 2010

Newest Firefox Beta Adds Speed - PCWorld

Newest Firefox Beta Adds Speed - PCWorld
With the release of Firefox 4 Beta 7, Mozilla returned to near the top spot in browser performance rankings.
Artwork: Chip TaylorAccording to tests run by Computerworld, the new browser is about three times faster than the current production version of Firefox in rendering JavaScript, and lags behind only Opera among the top five browser makers.
On Wednesday, Mozilla launched Firefox 4 Beta 7, a preview that includes all the features slated to make it into the final, polished version next year.
Beta 7 was the first to include Mozilla's new JavaScript JIT (Just In Time) compiler, dubbed "JagerMonkey," which shot the browser's performance into the No. 2 slot behind the alpha of Opera 11.
Computerworld ran the SunSpider JavaScript benchmark suite in Windows Vista Business three times for each browser, then averaged the scores.
Three of the five major browsers were closely bunched at the top. Opera 11 Alpha, which the Norwegian company released last month, barely edged Firefox 4 Beta 7, which in turn narrowly beat the beta of Google's Chrome 8.
Meanwhile, results for Apple's Safari and Microsoft's beta of Internet Explorer 9 (IE9) put that pair significantly behind the top three. For example, Firefox 4 Beta 7 was approximately 25% faster than IE9 Beta in the trials.
Internet Explorer 8, Microsoft's primary browser, was also tested, although for all intents and purposes, it isn't in the JavaScript race: Firefox 4 was more than 12 times faster at rendering JavaScript than IE8.
Not surprisingly, Mozilla boasted of the speed improvements courtesy of the JagerMonkey compiler, and its integration with the earlier TraceMonkey optimization of the browser's JavaScript engine.
On a company blog telling users to "fasten your seatbelts," Mozilla posted JavaScript results from tests run not only in SunSpider -- a benchmark developed by the team responsible for WebKit, the browser engine that powers Chrome and Safari -- but also in Mozilla's own Kraken and Google's V8.
In two of the three tests, Firefox 4 Beta 7 proved three times faster than Firefox 3.6.12, the current production build. (Mozilla said V8's results showed Firefox 4 was five times faster than 3.6.12.)
"We knew we needed another major upgrade for Firefox 4 to make us fast all around," said David Mandelin, a Mozilla engineer who worked on JagerMonkey, in a September blog post that Mozilla cited yesterday.
Among other changes to Firefox 4 in Beta 7 were hardware acceleration in both Windows and Mac OS X, support for the WebGL 3D graphics standard, and support for the OpenType font format.
For the first time, Firefox now accelerates aspects of content rendering and page composition when running in Windows XP, Windows Vista and Window 7, as well as in Mac OS X.
Browser hardware acceleration shifts some tasks from a computer's main processor to its graphics processor to boost performance, especially of graphics-intensive chores like rendering video or complex three-dimensional objects.
Like Microsoft , which offers hardware acceleration in IE9, Mozilla relied on the Direct3D API (application programming interface) to boost page compositing in Windows. Mozilla, however, went one step further, accelerating page compositing, though not content rendering, in Windows XP.
Microsoft's IE9 will not run on Windows XP because the still-popular operating system doesn't support Direct2D, the API IE9 uses to boost content rendering.
Firefox 4 Beta 7 on the Mac uses the cross-platform OpenGL API to accelerate page composition.
The Linux version of Firefox 4 does not yet have hardware acceleration switched on, due, said a Mozilla engineer, to driver issues.
The delay was due to problems pinning down bugs in Beta 7 -- which was originally scheduled to debut eight weeks ago -- and waiting for the JagerMonkey team to integrate the new compiler into the JavaScript engine. Late last month Mozilla announced that it was pushing back the release date , once targeted for before the holiday season, into early 2011.
But the browser's development schedule remains aggressive, with three more betas before the end of the year. Mozilla, however, has tacitly acknowledged that the early 2011 final release is tentative, and could slip. "We will not ship software before it is ready," said Mike Beltzner, director of Firefox, when Mozilla announced the delay last month.
Firefox 4 Beta 7 is about three times faster than the older 3.6.12, and lags behind only an alpha of Opera 11 in JavaScript speeds. Smaller results are better.