Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
array.filter 2019601.6 Ops/sec
for loop 1449190.9 Ops/sec
array.filter with array.includes 1979191.9 Ops/sec
Script Preparation code:
Tests:
  • array.filter

  • for loop

  • array.filter with array.includes