jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
var e = document.querySelector("ul.first");
for (var i = 0; i < e.length; ++i) {
if(hasClass(e[i], 'foo'))
e[i].style.backgroundColor = 'red';
if(hasClass(e[i], 'bar'))
e[i].style.backgroundColor = 'green';
}
ready
native javascript two
var elfoo = document.querySelector("ul.first .foo");
var elbar = document.querySelector("ul.first .bar");
for (var i = 0; i < elfoo.length; ++i) {
elfoo[i].style.backgroundColor = 'red';
}
for (var i = 0; i < elbar.length; ++i) {
elbar[i].style.backgroundColor = 'red';
}