Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Linux
Desktop
one year ago
Test name Executions per second
instanceof 102427152.0 Ops/sec
string type 691472000.0 Ops/sec
string type + undefined 729669376.0 Ops/sec
property 686210624.0 Ops/sec
constructor comparison 668028288.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison