Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
2 years ago
Test name Executions per second
instanceof 99396448.0 Ops/sec
string type 760000256.0 Ops/sec
string type + undefined 811424448.0 Ops/sec
property 687279680.0 Ops/sec
constructor comparison 657725760.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison