Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 YaBrowser/16.9.0.2765 Safari/537.36
Yandex Browser 16
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
spreadArray by ertema 369061.5 Ops/sec
spreadArray by kbakba 323306.2 Ops/sec
spreadArray with comparsion and concat 43940.4 Ops/sec
spreadArray with concat only 43659.8 Ops/sec
spreadArray with comparsion only 448926.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