HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
Script Preparation code:
x
 
var max = 10000000; // 10,000,000 (10 Million)
var arr = [];
for (var i = 0; i <= max; i++) { arr.push(i); }
Tests:
  • lodash

     
    _.remove(arr, item => item === 890047);
  • native

     
    arr = arr.filter(item => item !== 890047);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash
    native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
lodash 67.8 Ops/sec
native 3.2 Ops/sec