Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
forEach 626.2 Ops/sec
reduce 622.0 Ops/sec
map 608.4 Ops/sec
filter 606.1 Ops/sec
for 527.9 Ops/sec
lodash map 616.5 Ops/sec
lodash filter 599.3 Ops/sec
lodash foreach 614.9 Ops/sec
lodash reduce 636.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;