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 performance of the better-dom library and jquery in typical cases
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="//rawgithub.com/chemerisuk/better-dom/v1.6.0/dist/better-dom.js"></script>
<script>
var nativeSandbox = document.createElement("div"),
jquerySandbox = $(nativeSandbox),
domSandbox = DOM.create(nativeSandbox),
className = "t" + new Date().getTime();
document.body.appendChild(nativeSandbox);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
jquery#addClass |
| ready |
DOM#addClass |
| ready |
jquery#addClasses |
| ready |
DOM#addClasses |
| ready |
jquery#toggleClass |
| ready |
DOM#toggleClass |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.