Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
Literal with push 12753.8 Ops/sec
Constructor() with push 12304.2 Ops/sec
Constructor(times) with push 10544.1 Ops/sec
Literal with index 15703.1 Ops/sec
Constructor() with index 15299.9 Ops/sec
Constructor(times) with index 22812.1 Ops/sec
Literal with push and overflow 12166.1 Ops/sec
Constructor() with push and overflow 12314.8 Ops/sec
Constructor(times) with push and overflow 11646.2 Ops/sec
Literal with index and overflow 17903.6 Ops/sec
Constructor() with index and overflow 17576.5 Ops/sec
Constructor(times) with index and overflow 23160.7 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


;