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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
var instance1 = {
value1: 1,
value2: 2,
value3: 3
};
if (result.value1 != 1) throw Error(1);
if (result.value2 != 2) throw Error(2);
if (result.value3 != 3) throw Error(3);
if (result.value4 != 4) throw Error(4);
Ready to run.
Test | Ops/sec | |
---|---|---|
Object.create |
| ready |
$.extend |
| ready |
_.extend |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.