Tests:
  • array.indexOf

  • in array

  • in map

  • char code

  • !isNaN

  • +num < 10

  • equal all

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array.indexOf
    in array
    in map
    char code
    !isNaN
    +num < 10
    equal all

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
array.indexOf 82038384.0 Ops/sec
in array 170567792.0 Ops/sec
in map 175120224.0 Ops/sec
char code 185987744.0 Ops/sec
!isNaN 15939185.0 Ops/sec
+num < 10 172903184.0 Ops/sec
equal all 171324704.0 Ops/sec


;