Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
forEach 426.9 Ops/sec
reduce 427.0 Ops/sec
map 381.9 Ops/sec
filter 390.0 Ops/sec
for 361.8 Ops/sec
lodash map 422.6 Ops/sec
lodash filter 420.2 Ops/sec
lodash foreach 414.5 Ops/sec
lodash reduce 427.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;