Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Chrome 77
Windows
Desktop
5 years ago
Test name Executions per second
forEach 304.6 Ops/sec
reduce 303.2 Ops/sec
map 303.3 Ops/sec
filter 300.1 Ops/sec
for 268.8 Ops/sec
lodash map 306.5 Ops/sec
lodash filter 308.1 Ops/sec
lodash foreach 306.5 Ops/sec
lodash reduce 303.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;