Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Windows
Other
8 years ago
Test name Executions per second
spreadArray by ertema 161643.2 Ops/sec
spreadArray by kbakba 69995.7 Ops/sec
spreadArray with comparsion and concat 41463.5 Ops/sec
spreadArray with concat only 36383.2 Ops/sec
spreadArray with comparsion only 160443.9 Ops/sec
Script Preparation code:
Tests:
  • spreadArray by ertema

  • spreadArray by kbakba

  • spreadArray with comparsion and concat

  • spreadArray with concat only

  • spreadArray with comparsion only