HTML Preparation code:
Script Preparation code:
Tests:
  • if

  • switch

  • lookup with strings

  • lookup with number

  • lookup in array

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    if
    switch
    lookup with strings
    lookup with number
    lookup in array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Chrome 142 on Windows
View result in a separate tab
Test name Executions per second
if 138380256.0 Ops/sec
switch 153990224.0 Ops/sec
lookup with strings 73909264.0 Ops/sec
lookup with number 44255112.0 Ops/sec
lookup in array 41711616.0 Ops/sec