Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36
Chrome 98
Linux
Desktop
2 years ago
Test name Executions per second
$.grep 2151483.2 Ops/sec
array.find 839287.2 Ops/sec
array.where 3437213.8 Ops/sec
angular.$filter 1404564.5 Ops/sec
array.filter 932690.1 Ops/sec
lodash.filter 714490.3 Ops/sec
underscore.filter 1033136.9 Ops/sec
grepAlone 2312637.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;