Script Preparation code:
Tests:
  • typeof function

  • call in function

  • !!fn?.call

  • fn?.call != null

  • fn?.call != void 0

  • isFuncTrue = fn?.call != undefined;

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    typeof function
    call in function
    !!fn?.call
    fn?.call != null
    fn?.call != void 0
    isFuncTrue = fn?.call != undefined;

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.1 Mobile/15E148 Safari/604.1
Mobile Safari 17 on iOS 17.1.1
View result in a separate tab
Test name Executions per second
typeof function 9300926.0 Ops/sec
call in function 6173735.5 Ops/sec
!!fn?.call 6911329.0 Ops/sec
fn?.call != null 9090097.0 Ops/sec
fn?.call != void 0 8914031.0 Ops/sec
isFuncTrue = fn?.call != undefined; 2929500.0 Ops/sec


;