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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Browser:
Chrome 123
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
let
50.4M/s
var
49.3M/s
const
47.3M/s
View exact numbers
Test name
Executions per second
✓
let
50,422,052 Ops/sec
var
49,253,180 Ops/sec
const
47,339,676 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()