Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
const vs let vs var
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 11; Mobile; rv:109.0) Gecko/117.0 Firefox/117.0
Browser:
Firefox Mobile 117
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
var
3.6M/s
const
3.1M/s
let
3.1M/s
View exact numbers
Test name
Executions per second
✓
var
3,580,366 Ops/sec
const
3,057,942 Ops/sec
let
3,055,718 Ops/sec
Tests:
var
var g = { e: [] } g.o = function(x) { g.e.push(...[1,2,3]) } g.o()
let
var g = { e: [] } g.o = function(x) { g.e.push(...[1,2,3]) } g.o()
const
const g = { e: [] } g.o = function(x) { g.e.push(...[1,2,3]) } g.o()