HTML Preparation code:
AخA
 
1
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.core.js"></script>
Script Preparation code:
x
 
var users = [
  { 'user': 'joey',  'age': 32 },
  { 'user': 'ross',    'age': 41 },
  { 'user': 'chandler', 'age': 39 }
]
Tests:
  • array normal fucntion find

     
    // Native
    users.find(function (o) { return o.age < 40; })
  • array arrow fucntion find

     
    users.find(o => o.age < 40)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array normal fucntion find
    array arrow fucntion find

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91 on Linux
View result in a separate tab
Test name Executions per second
array normal fucntion find 18050210.0 Ops/sec
array arrow fucntion find 18074546.0 Ops/sec