Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
grthyvar vs let vs const
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
var
9.6M/s
const
9.6M/s
outside - var
9.5M/s
let
9.5M/s
outside - let
9.4M/s
global
124K/s
View exact numbers
Test name
Executions per second
✓
var
9,623,945 Ops/sec
const
9,574,107 Ops/sec
outside - var
9,482,867 Ops/sec
let
9,471,369 Ops/sec
outside - let
9,368,077 Ops/sec
global
124,163 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let arr = Array(30).fill(()=>{})
Tests:
var
for(var o of arr) o()
let
for(let o of arr) o()
const
for(const o of arr) o()
outside - var
var o for(o of arr) o()
outside - let
let o for(o of arr) o()
global
for(o of arr) o()