Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36
Chrome 98
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 1913299.0 Ops/sec
array.find 801235.9 Ops/sec
array.where 2800317.2 Ops/sec
angular.$filter 1271318.0 Ops/sec
array.filter 915740.3 Ops/sec
lodash.filter 656366.2 Ops/sec
underscore.filter 907475.7 Ops/sec
grepAlone 2016511.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;