Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Chrome 76
Windows
Desktop
5 years ago
Test name Executions per second
$.grep 1022008.0 Ops/sec
array.find 454936.7 Ops/sec
array.where 1607386.0 Ops/sec
angular.$filter 466638.7 Ops/sec
array.filter 420035.0 Ops/sec
lodash.filter 902869.9 Ops/sec
underscore.filter 440882.2 Ops/sec
grepAlone 952842.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone