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="//rawgithub.com/lodash/lodash/8e25591212ec41967a29c9cb4dc1b0733c81f954/dist/lodash.js"></script>
<script>String.prototype.nativeContains = String.prototype.contains; delete String.prototype.contains;</script>
<script src="https://rawgithub.com/mathiasbynens/String.prototype.contains/master/contains.js"></script>
<script>String.prototype.mthsContains = String.prototype.contains; delete String.prototype.contains;</script>
<script src="https://rawgithub.com/paulmillr/es6-shim/master/es6-shim.js"></script>
<script>String.prototype.paulsContains = String.prototype.contains</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
es6-shim contains |
| ready |
Mathias' contains |
| ready |
native contains |
| ready |
Lo-Dash contains (not 100% equivalent) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.