Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
forEach 704.5 Ops/sec
reduce 712.8 Ops/sec
map 693.8 Ops/sec
filter 677.4 Ops/sec
for 569.1 Ops/sec
lodash map 717.5 Ops/sec
lodash filter 679.8 Ops/sec
lodash foreach 693.1 Ops/sec
lodash reduce 723.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • forEach

  • reduce

  • map

  • filter

  • for

  • lodash map

  • lodash filter

  • lodash foreach

  • lodash reduce


;