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>
var iterations = 1000,
a,
// simulate an AMD factory
factory = function () {
return {
inc: function (it) {
it += 1;
}
};
},
// simulate the module as the return value from the factory
module;
</script>
a = 0;
module = null;
Ready to run.
Test | Ops/sec | |
---|---|---|
try/catch |
| ready |
plain |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.