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:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
compare quering by some kinds of selector performance
<div id="app"></div>
const appEl = document.querySelector('#app');
for(let i = 0; i < 1000; i++) {
const element = document.createElement('div');
element.innerHTML = `<div id="123">
<div uuid="123" data-uuid="123" v-uuid="123"></div>
<div uuid="234" data-uuid="234" v-uuid="234"></div>
</div>`;
appEl.appendChild(element);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
test '[uuid="123"]' |
| ready |
test '[data-uuid="123"]' |
| ready |
test '[v-uuid="123"]' |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.