Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
instanceof 144353120.0 Ops/sec
string type 1150601216.0 Ops/sec
string type + undefined 1146126976.0 Ops/sec
property 1149233408.0 Ops/sec
constructor comparison 1144542592.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison


;