Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
const vs let vs var (fixed) 23
(version: 0)
Comparing performance of:
var vs let vs const
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
var
var g = []; var f = function(x) { g.push(1,2,3) }; f()
let
let g = []; let f = function(x) { g.push(1,2,3) }; f()
const
const g = []; const f = function(x) { g.push(1,2,3) }; f()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
var
let
const
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?