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

     
    obj instanceof TestClass;
  • string type

     
    obj.t === 'meshmeshmesh'
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: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
instanceof 128360232.0 Ops/sec
string type 912723008.0 Ops/sec