37 JavaScript benchmarks
JavaScript benchmarks have achieved greater visibility in the Ajax era, but they have a long and proud history. I did a little digging and came up with this round-up of profiling suites past, present and future. Many of them mix pure JS tests with DOM tests. Those that focus more on a specific type of operation are broken out into a separate list after the jump, as are browser-specific benchmarks and a bunch of cobweb-covered older suites.
Recent Benchmarks
- SunSpider 0.9: The Webkit team's JavaScript benchmark. (Announcement here.) (Jeff Atwood's post here.)
- Javascript Library Performance Test Roundup: From the folks behind PBWiki. (Results page here.)
- Ajax and Flex Data Loading Benchmarks: From James Ward, RIA Cowboy using his own Census tool.
- JavaScript Engine Speeds: John Resig of jQuery's September 2007 post comparing Rhino to SpiderMonkey, Tamarin and JavaScriptCore.
- A Study of Ajax Performance Issues: Coach Wei uses the jsLex profiling tool to put the entire Ajax stack through its paces.
- Evaluate Low Level JavaScript Performance Characteristics: Speaking of jsLex, it was created by the folks from RockStarApps, who pitted it against September 2007's best and brightest browsers in this post.
- JavaScript Speed Tests: From Celtic Kane Online.
- General Browser Load-Time Test: The first in an entire suite of browser tests from the Non-Troppo site.
- Double-Dollar Speed Test: An interactive suite that tests the selector functions of various big Ajax libraries.
- Computer Language Benchmarks Game: A clever, snarky "game" in which various language implementations can be tested against one another.
- i-Bench: The now-discontinued benchmark suite used by PC Magazine can still be downloaded in its archival edition.
Issue-specific benchmarks
- JavaScript date formatting benchmarks: An interesting and novel blog post from 2006.
- JavaScript optimization, are chained calls expensive?: More historically interesting material from 2006.
- JavaScript for and while loop benchmark: A nice niche test suite from the Web Reflection blog.
- Adding DOM elements to document: A benchmark from the Wildbit folks.
- Scoot Benchmarks: A test suite of indeterminate provenance.
- Mesh transform: A math-heavy pure JS test from the Webkit site, which also maintains its own benchmark links page.
- JavaScript performance test: Another set of math-heavy tests.
- Bits In Byte Function Compare: More math-heavy tests.
- JavaScript loops performance test: A suite written for this blog post by developer Batiste Bieler.
- DOM Core Performance: Appending, Prepending, Inserting, Indexing, Removing: A suite whose title says it all.
- JavaScript loop test: Another search for the most efficient loop structure.
Older benchmarks
- VisiBone JavaScript Research by Unit Tests: A thorough set of tests dating from the Firefox 1.0 era.
- Ron's Small JavaScript Benchmarks: Some truly dusty JS Benchmark tests from 1996, of mostly historical interest. (Alternate link here.)
- JavaScript Speed Trials: A four-part blog entry from 2005 that attempts to extrapolate information about JavaScript best practices from IE6's performance. A bit out of date, but still an interesting read.
- JS/Bench 1.1: Some older test suites from ComputerBytesMan.com.
- JavaScript speed test: An older set of tests from Jason Orendorff, lately of the Mozilla Corporation and an engineer on the Firefox JavaScript engine.
- Benchmark - W3C DOM vs. innerHTML: PPK from QuirksMode's older but useful DHTML benchmark. QuirksMode also maintains a page listing additional historical benchmarks, some of which are now defunct.
- DHTML JavaScript Benchmark (DOM and innerHTML): Another set of DOM/innerHTML tests.
- Beware of JavaScript Library Overkill: A Particletree benchmark that cast aspersions of Prototype's Enumerable class circa 2006.
- JavaScript Benchmarks: All sorts of JSON and JS benchmarking posts from Dave Johnson's blog.
Browser-specific benchmarks
- Wired News Benchmarks Show Safari 3 Is Slower Than IE 7, Firefox
- Performance Tests for Opera 9.5
- Firefox 3 beta 2 JavaScript benchmark plus why Flock is faster than Firefox 2: A rather controversial blog post about testing the SunSpider benchmark on Flock vs. Firefox.
- iPhone JavaScript and Spec Benchmark: John Murch puts his iPhone through the paces using a number of the other benchmarks listed here.
- Benchmarking in your pants: More iPhone benchmarks.
Given last year's flap between Apple and Opera over Safari's benchmark claims and all the work Mozilla is putting into optimizing Firefox 3, it seems certain that performance will remain an important battle line amongst the big browser vendors. Despite the plethora of test suites above, I'm sure there are more to come.
Topics: Ajax Performance, Javascript
Leave a comment
About Pathfinder
Follow the Blog
-
Get a monthly update on best practices for delivering successful software.
Subscribe via email
Subscribe via RSS
Categories
Topics
Archives
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
Blogroll
Recent
- Elements of Testing Style
- Aesthetics and Web Design
- Asterisk-Java Testing with Groovy
- 3 Misuses of Code Comments
- Fluently NHibernate
- Digging a Hole and Covering it with Leaves — The Software Development Version
- The Importance of User Experience - Do You Understand It in Your Bones?
- Writing Your Own Protocol With NSURLProtocol
- What’s In Your Dock: iPhone edition
- Feature Fatigue

