Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Linux
Desktop
3 months ago
Test name Executions per second
instanceof 7307446.5 Ops/sec
string type 18792318.0 Ops/sec
string type + undefined 6471799.0 Ops/sec
property 6453217.5 Ops/sec
constructor comparison 7502535.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison