Tracing the Web: Andreas Gal on the new TraceMonkey JavaScript engine
For the past two months Andreas Gal has been part of the Mozilla team working on a just-in-time (JIT) compiler for the JavaScript engine in Firefox. On August 22nd the project (code named “TraceMonkey”) was added to the main Firefox development code base.
Andreas writes, “TraceMonkey is a trace-based JIT compiler and it pushes the envelope on JavaScript performance. On average, we speed up Apple’s popular SunSpider benchmarks by a factor of 4.6 over the last release of Firefox. For the SunSpider ubench suite, which focuses on core JavaScript language features, we achieve a speedup of 22x. Whichever metric you chose to apply, Firefox now has the fastest JavaScript engine in the world.” Andreas’ post goes on to discuss the concepts and background behind TraceMonkey in detail, including dynamic compilation with traces, trace trees and nested trace trees, and type specialization. You can read the full article at Andreas’ weblog.
JavaScript, Performance, Platform development
08 Sep 2008 deb 0 comments