HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var array = [...Array(100000).keys()];
var ram = Math.floor(100000 * Math.random());
Tests:
  • Array.prototype.every

     
    array.every(n => n === ram)
  • Lodash every

     
    _.every(array,n => n === ram)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.every
    Lodash every

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.every 8798461.0 Ops/sec
Lodash every 4541157.5 Ops/sec