Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
var-let-const4
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/127.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 127
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
const
1605744.9 Ops/sec
let
1577663.9 Ops/sec
var
1533006.9 Ops/sec
Script Preparation code:
function withConst(a,b) { const x = a + '10'; return x + b; } function withLet(a,b) { let x = a + '10'; return x + b; } function withVar(a,b) { var x = a + '10'; return x + b; }
Tests:
const
withConst(Math.random(), Math.random())
let
withLet(Math.random(), Math.random())
var
withVar(Math.random(), Math.random())