Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 YaBrowser/24.7.0.0 Safari/537.36
Yandex Browser 24
Linux
Desktop
one month ago
Test name Executions per second
instanceof 15715419.0 Ops/sec
string type 38837356.0 Ops/sec
string type + undefined 14114843.0 Ops/sec
property 14071548.0 Ops/sec
constructor comparison 16244255.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • instanceof

  • string type

  • string type + undefined

  • property

  • constructor comparison