Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 87
iOS 14.6
Mobile
3 years ago
Test name Executions per second
$.grep 2954081.0 Ops/sec
array.find 1643676.6 Ops/sec
array.where 3672228.2 Ops/sec
angular.$filter 1226547.6 Ops/sec
array.filter 2411823.0 Ops/sec
lodash.filter 2753960.5 Ops/sec
underscore.filter 2260337.5 Ops/sec
grepAlone 2486376.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;