Main menu:

Site search

Categories

Archive

TraceMonkey @Hacks

I wrote an article on TraceMonkey on hacks.mozilla.org. It’s aimed at web developers and anyone else who wants to understand how TraceMonkey works and what makes it different from other JavaScript engines. The article also talks about what kinds of JavaScript run especially fast or slow in TraceMonkey and some introductory information on how to diagnose and fix TraceMonkey performance problems at the JavaScript level.

I would like to thank Chris Blizzard and Arun Ranganathan for inviting me to write the article. Thanks also to Luke Wagner, David Anderson, Andreas Gal, and Jeff Walden for copyediting and technical editing. Finally, thanks again to blizzard and Arun, and also Eric Shepherd, for doing final proofreading and getting the article online.

Comments

Comment from Dan
Time: July 20, 2009, 2:42 pm

Another very informative and interesting article. “We are actively working on tracing all the features named above.” I’m looking forward to Firefox.next!

Comment from Pedro
Time: September 1, 2009, 4:08 am

Thank you for your article!
I have written a javascript GameBoy Emulator that runs at full speed on V8 but very slow with TraceMonkey.

You can test it here: http://www.codebase.es/jsgb

I was getting mad trying to find an explanation because in all my benchmarks TM is always much faster than V8.

Now i will try to modify the code to get correct traces (if I find where the incorrect are).

Write a comment