Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Windows 7
Desktop
3 years ago
Test name Executions per second
$.grep 298149.8 Ops/sec
array.find 67147.8 Ops/sec
array.where 459934.3 Ops/sec
angular.$filter 275658.5 Ops/sec
array.filter 113992.2 Ops/sec
lodash.filter 312737.0 Ops/sec
underscore.filter 291778.3 Ops/sec
grepAlone 304349.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone