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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
outside - let
17.3M/s
var
16.3M/s
let
16.2M/s
const
16.2M/s
outside - var
14.7M/s
global
221K/s
View exact numbers
Test name
Executions per second
✓
outside - let
17,323,818 Ops/sec
var
16,322,583 Ops/sec
let
16,225,350 Ops/sec
const
16,181,533 Ops/sec
outside - var
14,735,368 Ops/sec
global
221,106 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()