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="https://ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://digg.googlecode.com/files/Class-0.0.2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.2.0/prototype.js"></script>
<script src="https://raw.github.com/lodash/lodash-compat/3.10.1/lodash.min.js"></script>
var result = '';
function extend(target, source) {
for (var i in source) {
target[i] = source[i]
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery Class.create |
| ready |
Prototype Class.create |
| ready |
Pure JS |
| ready |
Pure + underscore extend prototype |
| ready |
Pure JS + extend prototype with "for" |
| ready |
Pure JS no prototype |
| ready |
Pure JS prototype with simple extend function |
| ready |
Object.create |
| ready |
Pure JS + extend prototype with object |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.