Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
instanceof 13391443.0 Ops/sec
string type 32286372.0 Ops/sec
string type + undefined 11621901.0 Ops/sec
property 11431176.0 Ops/sec
constructor comparison 13378608.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison