Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
one year ago
Test name Executions per second
forEach 330.5 Ops/sec
reduce 296.7 Ops/sec
map 320.6 Ops/sec
filter 322.4 Ops/sec
for 274.8 Ops/sec
lodash map 336.6 Ops/sec
lodash filter 324.2 Ops/sec
lodash foreach 335.0 Ops/sec
lodash reduce 348.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;