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 7206078.5 Ops/sec
Store values in consts first (arranged) 6164186.5 Ops/sec
Access values directly 6030440.5 Ops/sec
Store values in consts first (arranged2) 7206505.5 Ops/sec
Store values in consts first (arranged3) 7027156.0 Ops/sec
Store values in consts first (arranged4) 7192171.0 Ops/sec
Store values in consts first (arranged5) 7044239.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)


;