Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
const vs let vs var (fixed) 234
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/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
let
27.1M/s
const
25.7M/s
var
22.1M/s
View exact numbers
Test name
Executions per second
✓
let
27,144,858 Ops/sec
const
25,696,414 Ops/sec
var
22,122,902 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()