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
See here complete article:
http://conceptf1.blogspot.com/2014/01/javascript-best-practices-loop-optimization.html
<h3><a href='http://conceptf1.blogspot.com/2014/01/javascript-best-practices-loop-optimization.html'>JavaScript Best Practices : Loop Optimization </a></h3>
var i, max, fruits = ["apple", "banana", "orange", "mango"];
Ready to run.
Test | Ops/sec | |
---|---|---|
counter & condition to break within loop |
| ready |
Cache condition to break |
| ready |
cache counter and condition to break |
| ready |
Without increment (i++) operator |
| ready |
reverse loop |
| ready |
while without decrement operator |
| ready |
for in loop |
| ready |
forEach lambda |
| ready |
forEach function reference |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.