Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
forEach 363.2 Ops/sec
reduce 363.3 Ops/sec
map 349.1 Ops/sec
filter 350.7 Ops/sec
for 311.7 Ops/sec
lodash map 366.7 Ops/sec
lodash filter 301.4 Ops/sec
lodash foreach 358.5 Ops/sec
lodash reduce 371.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;