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.children.length; ++i) {
if (hasClass(e.children[i], 'foo'))
e.children[i].style.backgroundColor = 'red';
if (hasClass(e.children[i], 'bar'))
e.children[i].style.backgroundColor = 'green';
}
ready
native javascript two
var elfoo = document.querySelector("ul.first .foo");
var elbar = document.querySelector("ul.first .bar");
elfoo.style.backgroundColor = 'red';
elbar.style.backgroundColor = 'green';