Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/91.0.4472.80 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 91
iOS 14.6
Mobile
3 years ago
Test name Executions per second
$.grep 2635517.0 Ops/sec
array.find 3226441.5 Ops/sec
array.where 3437990.5 Ops/sec
angular.$filter 1079351.6 Ops/sec
array.filter 2205974.8 Ops/sec
lodash.filter 2575431.2 Ops/sec
underscore.filter 2142353.2 Ops/sec
grepAlone 2686970.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;