Announcement

Collapse
No announcement yet.

Mozilla turbocharges Firefox 3.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mozilla turbocharges Firefox 3.1

    Techworld.com - Mozilla turbocharges Firefox 3.1

    Mozilla turbocharges Firefox 3.1
    JavaScript gets a serious tweaking.
    Gregg Keizer, Computerworld (US)
    26 August 2008

    Mozilla has added the fruits of a two-month JavaScript turbo power project to the 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.

    "We really started work on this 51 days ago," Shaver said Friday. Gal, who took a summer leave of absence from UC Irvin, 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, codenamed "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 was sure that others would dive into comparative tests, an easy prediction, because also on Friday, Mason Chang, a graduate student at UC Irvine who worked with Gals, 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.4 x 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.
    This article was printed from Techworld : Techworld.com - Techworld IT infrastructure and networks
    The UK's infrastructure & network knowledge centre
    ? 2008 : All rights reserved

    #2
    Hope this goes gold soon, as it appears they are just getting around to finalizing it. JS speed looks amazingly fast.
    Oh if a man tried to take his time on Earth and prove before he died what one man's life could be worth, well I wonder what would happen to this world ? - Harry Chapin

    Comment

    Cain's Lair Forums Statistics

    Collapse

    Topics: 26,187   Posts: 269,850   Members: 6,183   Active Members: 7
    Welcome to our newest member, Fermin13Q.

    Today's Birthdays

    Collapse

    Top Active Users

    Collapse

    There are no top active users.

    More Posts

    Collapse

    • Reply to Hi guys!
      by Evil_T0NY {CLR}
      I've been Alpha and will be Beta testing the Delta Force game. It's been really getting good reviews! Definitely a good Battlefield feel to it like the...
      14 Nov 2024, 08:50 PM
    • Reply to Hope your all OK over there
      by Apache Warrior
      We had 17 inches of rain from the storm on November 7, 2024.
      Apache
      11 Nov 2024, 07:55 AM
    • Reply to Hope your all OK over there
      by Sirex
      Aye, I'm inclined to agree with that lmao
      Gone are the days of warm summers and snow filled winters here, nothing but rain and wind for 8mths of...
      10 Nov 2024, 08:53 PM
    • Reply to Hope your all OK over there
      by Apache Warrior
      Now we have had a lot of flooding in this area and there are still a lot of houses that have not been repaired. Must be the apocalypse.
      ...
      8 Nov 2024, 09:23 AM
    Working...
    X