Script Preparation code:
Tests:
  • Switch

  • Object Literal

  • Object Literal 2

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Switch
    Object Literal
    Object Literal 2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.5.715 Yowser/2.5 Safari/537.36
Yandex Browser 22 on Windows
View result in a separate tab
Test name Executions per second
Switch 170518.1 Ops/sec
Object Literal 166080.5 Ops/sec
Object Literal 2 170932.2 Ops/sec