Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Chrome 76
Windows
Desktop
5 years ago
Test name Executions per second
$.grep 1583430.6 Ops/sec
array.find 706841.8 Ops/sec
array.where 2558470.8 Ops/sec
angular.$filter 669122.8 Ops/sec
array.filter 636288.2 Ops/sec
lodash.filter 1781942.0 Ops/sec
underscore.filter 797020.4 Ops/sec
grepAlone 1700373.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;