Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
Chrome 80
Mac OS X 10.14.4
Desktop
4 years ago
Test name Executions per second
native built-in filter 1170.5 Ops/sec
native logic for filter, map 516.1 Ops/sec
using forEach 2036.9 Ops/sec
lodash chain 933.9 Ops/sec
lodash not chain 927.8 Ops/sec
native length refer 490.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • native built-in filter

  • native logic for filter, map

  • using forEach

  • lodash chain

  • lodash not chain

  • native length refer


;