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).

Comment from Essay
Time: November 8, 2010, 11:05 pm

This article is very informative one. Maybe you spend so much time writing this one. Pretty good you are. Thanks for this.

Comment from locations 4 business features and news
Time: November 20, 2010, 7:26 am

Thank you. Excellent post. I have book marked this page.

Comment from nusa dua villas
Time: November 22, 2010, 1:12 am

It is wonderful to see such a detailed article about the new TraceMonkey JavaScript engine, It’s definitely faster, I’ve not had any crashes, and by reviewing and uninstalling extensions I’ve lowered its 6-hour memory consumption by some 100MB……..

Comment from Predictive Dialer
Time: November 22, 2010, 10:39 am

Not a huge fan of how slow TraceMonkey is, but I’ll live with it because the analytics are great.