Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Chrome 54
Windows
Other
8 years ago
Test name Executions per second
for loop 241.5 Ops/sec
javascript array.find 1756.1 Ops/sec
javascript array.find with function 1748.5 Ops/sec
javascript array.find with function and index 1760.4 Ops/sec
Script Preparation code:
Tests:
  • for loop

  • javascript array.find

  • javascript array.find with function

  • javascript array.find with function and index


;