Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
Chrome 73
Windows
Desktop
5 years ago
Test name Executions per second
Store values in consts first 7048720.0 Ops/sec
Store values in consts first (arranged) 6080373.5 Ops/sec
Access values directly 6135094.5 Ops/sec
Store values in consts first (arranged2) 6898073.5 Ops/sec
Store values in consts first (arranged3) 6964164.0 Ops/sec
Store values in consts first (arranged4) 7150327.0 Ops/sec
Store values in consts first (arranged5) 7088094.0 Ops/sec
Script Preparation code:
Tests:
  • Store values in consts first

  • Store values in consts first (arranged)

  • Access values directly

  • Store values in consts first (arranged2)

  • Store values in consts first (arranged3)

  • Store values in consts first (arranged4)

  • Store values in consts first (arranged5)


;