Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows 7
Other
7 years ago
Test name Executions per second
Decide length in `new` 509864.5 Ops/sec
Decide length with .length 330046.2 Ops/sec
Push items separately 349642.2 Ops/sec
Assign items separately 342388.9 Ops/sec
Script Preparation code:
Tests:
  • Decide length in `new`

  • Decide length with .length

  • Push items separately

  • Assign items separately


;