Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 YaBrowser/16.9.1.630 (beta) Yowser/2.5 Safari/537.36
Yandex Browser 16
Windows
Other
8 years ago
Test name Executions per second
spreadArray by ertema 459502.8 Ops/sec
spreadArray by kbakba 174430.2 Ops/sec
spreadArray with comparsion and concat 46463.7 Ops/sec
spreadArray with concat only 44887.7 Ops/sec
spreadArray with comparsion only 566569.6 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