Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
forEach 299.3 Ops/sec
reduce 233.7 Ops/sec
map 279.5 Ops/sec
filter 259.7 Ops/sec
for 270.0 Ops/sec
lodash map 301.4 Ops/sec
lodash filter 300.4 Ops/sec
lodash foreach 309.4 Ops/sec
lodash reduce 307.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;