HTML Preparation code:
AخA
 
1
<script>
2
class TestClass {
3
    constructor() {
4
        this.a = 2;
5
        this.t = 'TABLE_ROW_HEIGHT_CHANGE';
6
    }
7
}
8
</script>
Script Preparation code:
 
var obj = new TestClass();
Tests:
  • instanceof

     
    obj instanceof TestClass;
  • string type

     
    obj.t === 'mesh'
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    instanceof
    string type

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 OPR/89.0.4447.64 (Edition GX-CN)
Opera 89 on Windows
View result in a separate tab
Test name Executions per second
instanceof 5453666.5 Ops/sec
string type 14083796.0 Ops/sec