Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Other
8 years ago
Test name Executions per second
this 1177078.4 Ops/sec
that 1172006.1 Ops/sec
Script Preparation code:
x
 
function Monster()
{
    this.x = 100;
    this.y = 100;
    console.log("Monster created at " + this.x + " / " + this.y + "!");
}
function Monster2()
{
    var that = this;
    that.x = 100;
    that.y = 100;
    console.log("Monster created at " + that.x + " / " + that.y + "!");
}
Tests:
  • this

     
    new Monster();
  • that

     
    new Monster2();