Run details:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Chrome 74
Windows 7
Desktop
5 years ago
Test name Executions per second
$.grep 540286.8 Ops/sec
array.find 246480.4 Ops/sec
array.where 783041.1 Ops/sec
angular.$filter 228774.6 Ops/sec
array.filter 49877.3 Ops/sec
lodash.filter 505611.7 Ops/sec
underscore.filter 254355.9 Ops/sec
grepAlone 564252.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone