Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Chrome 92
Windows
Desktop
3 years ago
Test name Executions per second
$.grep 260428.7 Ops/sec
array.where 304185.7 Ops/sec
angular.$filter 190241.3 Ops/sec
array.filter 74296.6 Ops/sec
lodash.filter 51557.4 Ops/sec
underscore.filter 105481.7 Ops/sec
grepAlone 266055.4 Ops/sec
fasterFilter 360375.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone

  • fasterFilter


;