Run details:
Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG GT-I9505 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36
Chrome Mobile 44
Android 5.0.1
Samsung GT-I9505
7 years ago
Test name Executions per second
Literal with push 6879.6 Ops/sec
Constructor() with push 6867.6 Ops/sec
Constructor(times) with push 6550.3 Ops/sec
Literal with index 36078.9 Ops/sec
Constructor() with index 33063.1 Ops/sec
Constructor(times) with index 39390.8 Ops/sec
Literal with push and overflow 7061.6 Ops/sec
Constructor() with push and overflow 6860.5 Ops/sec
Constructor(times) with push and overflow 7053.5 Ops/sec
Literal with index and overflow 36949.9 Ops/sec
Constructor() with index and overflow 33780.5 Ops/sec
Constructor(times) with index and overflow 39960.9 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