Reduce vs map/join

4 years ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
Test name Executions per second
for 2660.8 Ops/sec
reduce 10816.9 Ops/sec
map 5957.8 Ops/sec
for of 43807.5 Ops/sec
Script Preparation code:
  • for

  • reduce

  • map

  • for of

Open this result on