Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
8 months ago
Test name Executions per second
reduce with spread 20.8 Ops/sec
flatMap 3342.9 Ops/sec
reduce with push 22915.8 Ops/sec
for...of 31089.3 Ops/sec
Script Preparation code:
Tests:
  • reduce with spread

  • flatMap

  • reduce with push

  • for...of