Test case details

Preparation Code

function T() {     }         T.prototype.myMethod = function(i) {       if (i == 20000) {         console.log('Hey T!');       }     };         T.prototype.myMethod1 = function(i) {       if (i == 20000) {         console.log('Hey T!');       }     };         T.prototype.myMethod2 = function(i) {       if (i == 20000) {         console.log('Hey T!');       }     };         T.prototype.myMethod3 = function(i) {       if (i == 20000) {         console.log('Hey T!');       }     };         T.prototype.myMethod4 = function(i) {       if (i == 20000) {         console.log('Hey T!');       }     };                 function Tt() {       this.myMethod = function(i) {         if (i == 20000) {           console.log('Hey Tt!');         }       };           this.myMethod1 = function(i) {         if (i == 20000) {           console.log('Hey Tt!');         }       };           this.myMethod2 = function(i) {         if (i == 20000) {           console.log('Hey Tt!');         }       };           this.myMethod3 = function(i) {         if (i == 20000) {           console.log('Hey Tt!');         }       };           this.myMethod4 = function(i) {         if (i == 20000) {           console.log('Hey Tt!');         }       };     }

Test cases

Test #1

for (var i = 1; i <= 20000; i++) {   var x = new T();   x.myMethod(i); }

Test #2

for (var i = 1; i <= 20000; i++) {   var x = new Tt();   x.myMethod(i); }