Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
instanceof 119493632.0 Ops/sec
string type 852478720.0 Ops/sec
string type + undefined 753575680.0 Ops/sec
property 692393920.0 Ops/sec
constructor comparison 743162176.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison