Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Chrome 81
Windows
Desktop
4 years ago
Test name Executions per second
$.grep 933629.9 Ops/sec
array.find 362256.1 Ops/sec
array.where 1503835.0 Ops/sec
angular.$filter 320428.0 Ops/sec
array.filter 338560.5 Ops/sec
lodash.filter 969685.5 Ops/sec
underscore.filter 367478.4 Ops/sec
grepAlone 985452.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone