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
<div id="box">I'm a box</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
var el = document.getElementById("box"),
trs = {
x: 10,
y: -22,
z: 0
},
rot = {
x: 0,
y: 0,
z: -22
},
scl = {
x: 1,
y: 2,
z: 1
},
tform = {
trs: ' translate3d(' + trs.x + 'px, ' + trs.y + 'px, ' + trs.z + 'px)',
rot: ' rotateZ(' + rot.z + 'rad)',
scl: ' scale3d(' + scl.x + ', ' + scl.y + ', 1)'
},
cssPrefix = '-webkit-',
margin = ' ' + (el.offsetHeight / -2) + 'px 0 0 ' + (el.offsetWidth / -2) + 'px; '
el = null;
Ready to run.
Test | Ops/sec | |
---|---|---|
Native DOM |
| ready |
jQuery.css() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.