Script Preparation code:
Tests:
  • IsArray

  • typecheck (nullable dot) (array)

  • manual check cond

  • typeof obj + length

  • manual check with null-coalescing

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    IsArray
    typecheck (nullable dot) (array)
    manual check cond
    typeof obj + length
    manual check with null-coalescing

    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: 10 months ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114 on Ubuntu
View result in a separate tab
Test name Executions per second
IsArray 68048780.0 Ops/sec
typecheck (nullable dot) (array) 60658060.0 Ops/sec
manual check cond 54119090.0 Ops/sec
typeof obj + length 60121330.0 Ops/sec
manual check with null-coalescing 46595430.0 Ops/sec