Script Preparation code:
Tests:
  • switch function

  • switch inline

  • object

  • Map

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    switch function
    switch inline
    object
    Map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 23 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Linux
View result in a separate tab
Test name Executions per second
switch function 20525988.0 Ops/sec
switch inline 32947854.0 Ops/sec
object 164263936.0 Ops/sec
Map 696350016.0 Ops/sec