Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
instanceof 131268000.0 Ops/sec
string type 1378234880.0 Ops/sec
string type + undefined 1430738944.0 Ops/sec
property 1395939072.0 Ops/sec
constructor comparison 1447695232.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison


;