Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
Safari 9
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
Literal with push 82946.2 Ops/sec
Constructor() with push 80095.9 Ops/sec
Constructor(times) with push 81866.6 Ops/sec
Literal with index 264841.7 Ops/sec
Constructor() with index 277595.2 Ops/sec
Constructor(times) with index 289231.4 Ops/sec
Literal with push and overflow 82242.1 Ops/sec
Constructor() with push and overflow 79678.4 Ops/sec
Constructor(times) with push and overflow 82537.9 Ops/sec
Literal with index and overflow 270297.2 Ops/sec
Constructor() with index and overflow 286731.2 Ops/sec
Constructor(times) with index and overflow 291731.8 Ops/sec
Script Preparation code:
Tests:
  • Literal with push

  • Constructor() with push

  • Constructor(times) with push

  • Literal with index

  • Constructor() with index

  • Constructor(times) with index

  • Literal with push and overflow

  • Constructor() with push and overflow

  • Constructor(times) with push and overflow

  • Literal with index and overflow

  • Constructor() with index and overflow

  • Constructor(times) with index and overflow


;