Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.2
Mobile
2 years ago
Test name Executions per second
$.grep 990927.1 Ops/sec
array.find 1195167.2 Ops/sec
array.where 1393717.5 Ops/sec
angular.$filter 395572.3 Ops/sec
array.filter 792645.9 Ops/sec
lodash.filter 896787.8 Ops/sec
underscore.filter 803849.1 Ops/sec
grepAlone 917667.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;