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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
const
20.1M/s
var
19.5M/s
let
705K/s
View exact numbers
Test name
Executions per second
✓
const
20,139,876 Ops/sec
var
19,475,066 Ops/sec
let
705,126 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()