Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Ubuntu
Desktop
one year ago
Test name Executions per second
instanceof 170656608.0 Ops/sec
string type 788652928.0 Ops/sec
string type + undefined 815481216.0 Ops/sec
property 822221952.0 Ops/sec
constructor comparison 821799936.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison