Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Chrome 81
Windows 7
Desktop
3 years ago
Test name Executions per second
$.grep 586336.2 Ops/sec
array.find 625598.8 Ops/sec
array.where 922247.8 Ops/sec
angular.$filter 385838.1 Ops/sec
array.filter 552065.4 Ops/sec
lodash.filter 569230.4 Ops/sec
underscore.filter 413293.8 Ops/sec
grepAlone 1299397.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone