Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Windows 7
Desktop
6 years ago
Test name Executions per second
$.grep 738541.5 Ops/sec
array.find 348133.1 Ops/sec
array.where 1069149.0 Ops/sec
angular.$filter 309896.8 Ops/sec
array.filter 268980.4 Ops/sec
lodash.filter 181391.0 Ops/sec
underscore.filter 235959.9 Ops/sec
grepAlone 371105.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone