Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
8 months ago
Test name Executions per second
instanceof 6839463.0 Ops/sec
string type 15671715.0 Ops/sec
string type + undefined 5821920.5 Ops/sec
property 6193818.5 Ops/sec
constructor comparison 6978501.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison


;