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/ext-core.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/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/prototype.js">
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.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 | |
---|---|---|
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 |
jQuery Class.create |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.