<p>I'm currently working on a JavaScript tool that, during the course of its execution, will ultimately traverse each node in the DOM. Because this has potential to be a very expensive task, I'd like to benchmark the performance of this script.</p>

<p>What's the best, free tool for benchmarking a script such as this across the major browsers? Ideally, I'd like the tool (or set of tools, even):</p>

<ul>
<li>
**To generate some form of report based on the results of the test.** It can be as simple as a table showing execution times, or as complex as generating some form of a chart. Either way is fine.
</li>
<li>
**To be free.** it's not that I don't believe in paying for software, it's just that I don't have a major need for a tool like this in my typical day-to-day tasks.
</li>
</ul>

<p>If possible, I'd also like the tool to generate varying levels of complex pages so that I can stress test a set of DOMs. This isn't a necessity - if I need to do so, I can write one myself; however, I'd figure I'd poll the community first to see if something already exists.</p>

[{'answer_id': 53860, 'author': 'prakash', 'author_id': 123, 'author_profile': 'https://Stackoverflow.com/users/123', 'pm_score': 0, 'selected': False, 'text': '<p>Jeff posted <a href="http://www.codinghorror.com/blog/archives/001023.html" rel="nofollow noreferrer">The great browser javascript shutdown</a></p>\n\n<p><a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider.html" rel="nofollow noreferrer"><H2>SunSpider JavaScript Benchmark</H2></a></p>\n\n<p>But i wonder where the download link is ;)</p>\n'}, {'answer_id': 53869, 'author': 'Onorio Catenacci', 'author_id': 2820, 'author_profile': 'https://Stackoverflow.com/users/2820', 'pm_score': 1, 'selected': False, 'text': '<p>I believe <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" rel="nofollow noreferrer">Firebug</a> includes profiling of JS code.  Of course, it\'s not available in all the major browsers--only Firefox.</p>\n'}, {'answer_id': 54121, 'author': 'kamens', 'author_id': 1335, 'author_profile': 'https://Stackoverflow.com/users/1335', 'pm_score': 4, 'selected': True, 'text': '<p><strong><a href="http://getfirebug.com" rel="noreferrer">Firebug</a></strong> does include JS profiling, and it is probably the best out there.  While I\'ve had problems with Firebug\'s debugger, its profiler is currently top-of-the-line.  <strong><a href="http://www.mozilla.org/projects/venkman/" rel="noreferrer">Venkman</a></strong> is also an older JS debugger/profiler for Firefox, just in case you run into Firebug issues.</p>\n\n<p>Using these tools should get you just about all the profiling you need across all browsers even though you\'ll only be monitoring Firefox.  If you truly need to get down to dirty details of IE profiling and the like, there are a number of tools online that inject profiling calls into your javascript to help monitor all profiler-lacking browsers....but even to a JS performance nazi like me, this seems unnecessary.</p>\n\n<p><strong><em>Note:</em></strong> A new, very promising IE8 JS profiler has recently been announced: <a href="http://blogs.msdn.com/ie/archive/2008/09/11/introducing-the-ie8-developer-tools-jscript-profiler.aspx" rel="noreferrer">http://blogs.msdn.com/ie/archive/2008/09/11/introducing-the-ie8-developer-tools-jscript-profiler.aspx</a>.</p>\n'}, {'answer_id': 54633, 'author': 'ScottKoon', 'author_id': 1538, 'author_profile': 'https://Stackoverflow.com/users/1538', 'pm_score': 2, 'selected': False, 'text': "<p>In FireBug and FireBug Lite you can call the console.time() and console.timeEnd() methods in your code to start and end a timer around a particular piece of code. The Profiler tool in FireBug will measure how long each function takes. I've used it a lot to narrow down which lines of a particularly slow function are causing the slowdown</p>\n"}, {'answer_id': 1822770, 'author': 'Andreas Grabner', 'author_id': 58287, 'author_profile': 'https://Stackoverflow.com/users/58287', 'pm_score': 0, 'selected': False, 'text': '<p>For JavaScript, XmlHttpRequest, DOM Access, Rendering Times and Network traffic for IE6, 7 &amp; 8 you can use the free <a href="http://ajax.dynatrace.com" rel="nofollow noreferrer">dynaTrace AJAX Edition</a></p>\n'}]
['https://Stackoverflow.com/questions/53802', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/20/']