Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
const vs let vs var (fixed) 2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
let
78.4M/s
const
77.9M/s
var
76.0M/s
View exact numbers
Test name
Executions per second
✓
let
78,444,160 Ops/sec
const
77,875,072 Ops/sec
var
76,046,832 Ops/sec
Tests:
var
var g = []; var f = function(x) { g.push(1,2,3) }; f()
let
let g = []; let f = function(x) { g.push(1,2,3) }; f()
const
const g = []; const f = function(x) { g.push(1,2,3) }; f()