Script Preparation code:
Tests:
  • undefined w/ type

  • undefined w/o type without type check

  • typeof equal to

  • typeof equal to without type check

  • with brackets around typeof unequal

  • with brackets around typeof equal

  • with brackets around typeof unequal with type check

  • with brackets around typeof equal with type check

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    undefined w/ type
    undefined w/o type without type check
    typeof equal to
    typeof equal to without type check
    with brackets around typeof unequal
    with brackets around typeof equal
    with brackets around typeof unequal with type check
    with brackets around typeof equal with type check

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
undefined w/ type 18374640.0 Ops/sec
undefined w/o type without type check 18311990.0 Ops/sec
typeof equal to 18603890.0 Ops/sec
typeof equal to without type check 18557950.0 Ops/sec
with brackets around typeof unequal 18448910.0 Ops/sec
with brackets around typeof equal 18312630.0 Ops/sec
with brackets around typeof unequal with type check 18410300.0 Ops/sec
with brackets around typeof equal with type check 18432030.0 Ops/sec