| JavaScript speed boost ahead for Mozilla's Firefox |
|
| by Stephen Withers | |
| Tuesday, 26 August 2008 | |
|
Page 1 of 2 TraceMonkey already performs various benchmarks in 4.5 percent to 55 percent of the time taken by Firefox 3, and useful further improvements are thought possible. "The goal of the TraceMonkey project - which is still in its early stages - is to take JavaScript performance to another level, where instead of competing against other interpreters, we start to compete against native code," wrote Mike Shaver, interim VP engineering at Mozilla. "Even with this very, very early version we’re already seeing some promising results: a simple 'for loop' is getting close to unoptimized gcc." gcc is the GNU Compiler Collection, widely used for open source and commercial software development. Shaver's observation compares code written in JavaScript and C. Mozilla CTO and original JavaScript creator Brendan Eich explained that SpiderMionkey gets its speed from a new kind of just-in-time (JIT) compiler. Where a conventional compiler converts entire programs into machine code at the outset, JIT compilers convert sections of the source code that are executed often enough to make it worth the effort. This much of the performance of a full compiler without the initial overhead. So where does SpiderMonkey get its speed? Please read on. |
| < Next story in category | Previous story in the category > |
|---|

TAG 




