Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
$.grep 14228.7 Ops/sec
array.where 13945.8 Ops/sec
angular.$filter 9792.2 Ops/sec
array.filter 3798.3 Ops/sec
lodash.filter 2813.5 Ops/sec
underscore.filter 5359.1 Ops/sec
grepAlone 14905.4 Ops/sec
fasterFilter 23256.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone

  • fasterFilter


;