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 = [
  { 'name': 'lim', 'age': 26 },
  { 'name': 'kim', 'age': 28 },
  { 'name': 'choi', 'age': 32 },
  { 'name': 'park', 'age': 21 }
 ];
Tests:
  • lodash find method

     
    _.find(array, arr => arr.age < 28)
  • es6 find method

     
    array.find(arr => arr.age < 28)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash find method
    es6 find method

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15
Safari 17 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
lodash find method 27075572.0 Ops/sec
es6 find method 131598512.0 Ops/sec