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 107818416.0 Ops/sec
string type 682832000.0 Ops/sec
string type + undefined 704070080.0 Ops/sec
property 729020288.0 Ops/sec
constructor comparison 730924608.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison