Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Windows
Desktop
5 years ago
Test name Executions per second
Store values in consts first 48334672.0 Ops/sec
Store values in consts first (arranged) 43995040.0 Ops/sec
Access values directly 27961868.0 Ops/sec
Store values in consts first (arranged2) 43341160.0 Ops/sec
Store values in consts first (arranged3) 45847980.0 Ops/sec
Store values in consts first (arranged4) 44775884.0 Ops/sec
Store values in consts first (arranged5) 42014048.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)


;