Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Ubuntu
Desktop
4 months ago
Test name Executions per second
reduce with spread 3.0 Ops/sec
flatMap 4727.0 Ops/sec
reduce with push 14412.6 Ops/sec
for...of 14940.9 Ops/sec
push(...arr) 41584.4 Ops/sec
Script Preparation code:
Tests:
  • reduce with spread

  • flatMap

  • reduce with push

  • for...of

  • push(...arr)


;