Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Chrome 86
Mac OS X 10.15.6
Desktop
4 years ago
Test name Executions per second
$.grep 1334375.5 Ops/sec
array.find 434115.5 Ops/sec
array.where 2134164.2 Ops/sec
angular.$filter 841407.3 Ops/sec
array.filter 544052.6 Ops/sec
lodash.filter 1412522.0 Ops/sec
underscore.filter 1424194.6 Ops/sec
grepAlone 1444326.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;