Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Mac OS X 10.15.6
Desktop
4 years ago
Test name Executions per second
$.grep 593230.4 Ops/sec
array.find 534674.9 Ops/sec
array.where 909890.7 Ops/sec
angular.$filter 528622.5 Ops/sec
array.filter 562483.1 Ops/sec
lodash.filter 595402.0 Ops/sec
underscore.filter 624284.1 Ops/sec
grepAlone 1711330.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;