Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Windows 7
Other
7 years ago
Test name Executions per second
Decide length in `new` 73736.2 Ops/sec
Decide length with .length 76253.9 Ops/sec
Push items separately 72747.1 Ops/sec
Assign items separately 73995.5 Ops/sec
Script Preparation code:
Tests:
  • Decide length in `new`

  • Decide length with .length

  • Push items separately

  • Assign items separately


;