Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
Chrome 88
Mac OS X 11.1.0
Desktop
3 years ago
Test name Executions per second
$.grep 1428217.8 Ops/sec
array.find 517372.4 Ops/sec
array.where 2186970.8 Ops/sec
angular.$filter 854185.9 Ops/sec
array.filter 713209.7 Ops/sec
lodash.filter 1559536.6 Ops/sec
underscore.filter 1543131.6 Ops/sec
grepAlone 1664384.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;