Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
forEach 414.6 Ops/sec
reduce 406.9 Ops/sec
map 388.1 Ops/sec
filter 390.5 Ops/sec
for 343.7 Ops/sec
lodash map 394.9 Ops/sec
lodash filter 391.3 Ops/sec
lodash foreach 408.3 Ops/sec
lodash reduce 414.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;