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="cont" style="background:#ccc; width:100px; height:100px;overflow:auto;">
</div>
var elem = document.createElement('div');
elem.id = 'elem';
elem.style = 'position:absolute;height:1000px;width:50px;background-color:#FF0;';
document.getElementById('cont').appendChild(elem);
var xform = 'transform';
['webkit', 'Moz', 'O', 'ms'].every(function (prefix) {
var e = prefix + 'Transform';
if (typeof elem.style[e] !== 'undefined') {
xform = e;
return false;
}
return true;
});
document.getElementById('cont').innerHTML = '';
Ready to run.
Test | Ops/sec | |
---|---|---|
translateY |
| ready |
Scroll left |
| ready |
Scroll using css top |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.