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
This is testing initialising methods within a class or via the prototype.
<script src="https://gist.github.com/raw/10bd35333fbd477b2a41/63c89c99444205cb82c778580bfc54ce1ef8f3be/Script.Closure.js"></script>
<script src="https://gist.github.com/raw/10bd35333fbd477b2a41/5ad6305de4af98a079baf5f7a0528aa056a5b712/Script.Prototype.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Closures |
| ready |
Prototypes |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.