Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
variable vs property (var vs this.property
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Iron Safari/537.36
Browser:
Chrome 109
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
variable
27874.9 Ops/sec
property
4343148.0 Ops/sec
Script Preparation code:
var aaaaa=123,bbbbb=123,ccccc=123; this.d=this.e=this.f=123;
Tests:
variable
for (let i = 0; i < 100; i++) { aaaaa + bbbbb + ccccc + i; }
property
for (let i = 0; i < 100; i++) { this.d + this.e + this.f + i; }