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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Browser:
Chrome 102
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
const
35.0M/s
var
34.9M/s
let
34.5M/s
View exact numbers
Test name
Executions per second
✓
const
35,003,536 Ops/sec
var
34,879,200 Ops/sec
let
34,532,268 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()