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 i = 0;
var data = [];
for (let i = 0; i < 1000000; i++) {
  data.push(i);
}
Tests:
  • lodash

     
    _.chain(data).filter((i) => i > 500000).map((i) => `__${i}__`).join(',').value()
  • native

     
    data.filter((i) => i > 500000).map((i) => `__${i}__`).join(',')
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: 29 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Linux
View result in a separate tab
Test name Executions per second
lodash 25.2 Ops/sec
native 23.3 Ops/sec