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 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Browser:
Firefox 131
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
let
30.7M/s
var
30.4M/s
const
30.1M/s
View exact numbers
Test name
Executions per second
✓
let
30,688,570 Ops/sec
var
30,422,152 Ops/sec
const
30,125,738 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()