HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    instanceof
    string type
    string type + undefined
    property
    constructor comparison

    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.11; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78 on Mac OS X 10.11
View result in a separate tab
Test name Executions per second
instanceof 39507116.0 Ops/sec
string type 86508840.0 Ops/sec
string type + undefined 34966680.0 Ops/sec
property 33149456.0 Ops/sec
constructor comparison 40121508.0 Ops/sec