Run details:
Mozilla/5.0 (Linux; Android 12; SM-T733) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Android
Tablet
2 years ago
Test name Executions per second
instanceof 2879966.0 Ops/sec
string type 7333697.5 Ops/sec
string type + undefined 2476580.5 Ops/sec
property 2481358.5 Ops/sec
constructor comparison 2921571.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison