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="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.2.1/lodash.min.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>
<script src="https://gist.github.com/ChiperSoft/8027320/raw/0d93d7c33296bcddac6f3521a1a2d9143241e8aa/contains.js"></script>
<script>String.prototype.chipersContains = String.prototype.contains; delete String.prototype.contains;</script>
<script>(function () { }).prototype = String.prototype; /* Trick for V8 to make String.prototype fast object again */</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
es6-shim contains |
| ready |
Mathias' contains |
| ready |
native contains |
| ready |
Lo-Dash contains (not 100% equivalent) |
| ready |
Chiper's Contains |
| ready |
indexOf |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.