Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
$.grep 1340355.4 Ops/sec
array.find 424550.7 Ops/sec
array.where 2175662.0 Ops/sec
angular.$filter 715351.4 Ops/sec
array.filter 524882.9 Ops/sec
lodash.filter 408764.8 Ops/sec
underscore.filter 605072.6 Ops/sec
grepAlone 1592361.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;