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)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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)

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 years ago)
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 on Windows
View result in a separate tab
Test name Executions per second
Store values in consts first 7048720.0 Ops/sec
Store values in consts first (arranged) 6080374.0 Ops/sec
Access values directly 6135095.0 Ops/sec
Store values in consts first (arranged2) 6898074.0 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