HTML Preparation code:
AخA
 
1
<script src='https://cdn.jsdelivr.net/g/lodash@4(lodash.min.js+lodash.fp.min.js)'></script>
Script Preparation code:
 
var fp = _.noConflict();
var array = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];
var reducer = (r, x) => r + x;
Tests:
  • Native

     
    array.reduce(reducer, '');
  • Lodash

     
    _.reduce(array, reducer, '');
  • Lodash FP

     
    fp.reduce(reducer, '')(array);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Native
    Lodash
    Lodash FP

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Native 4689534.0 Ops/sec
Lodash 7997755.0 Ops/sec
Lodash FP 1346608.8 Ops/sec