Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Mac OS X 10.12
Other
7 years ago
Test name Executions per second
Decide length in `new` 2.1 Ops/sec
Decide length with assignment 2.1 Ops/sec
Push items separately 111.5 Ops/sec
Script Preparation code:
Tests:
  • Decide length in `new`

  • Decide length with .length

  • Push items separately

  • Assign items separately