Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Ubuntu
Desktop
2 years ago
Test name Executions per second
instanceof 97014784.0 Ops/sec
string type 770811904.0 Ops/sec
string type + undefined 916334144.0 Ops/sec
property 903403200.0 Ops/sec
constructor comparison 667115904.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison


;