HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>
Script Preparation code:
x
 
window.arr = [];
for(i=0; i<1000; i++){ arr.push(i)}
Tests:
  • Lodash

     
    _.isEmpty(window.arr);
  • JS

     
    window.arr.length === 0;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash
    JS

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0
Opera 114 on Windows
View result in a separate tab
Test name Executions per second
Lodash 29549488.0 Ops/sec
JS 181985904.0 Ops/sec