02 8 / 2010
jsPerf: The Github of JavaScript Performance Testing
jsPerf is a new project by Mathias Bynens that makes creating and sharing JavaScript performance test cases easy. Besides being able to simply create your own test cases, you can browse through tests created by other people and even create your own fork of any given test by simply appending /edit to the url. Want to find out what the fastest way to round a number down in JavaScript is? No, it isn’t Math.floor. jsPerf will tell you. It seems like the double bitwise not (~~n) is the fastest in this case. Do you have a faster method? Just add /edit to the url, add your test case, and share.

jsPerf is like Github for JavaScript performance testing! Nice work, Mathias. You can create a test case by visiting http://jsperf.com/, and browse through some already written tests here. Before you create a test, be sure to check if there is already a test created for it, and fork it instead. Happy testing!