Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
ddddddddddd
(version: 0)
ddddddddddddddd
Comparing performance of:
1 vs 2 vs 3
Created:
6 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = []; for (var i = 0; i < 100000; i++) { arr[i] = i; } function someFn(i) { return i * 3 * 8; }
Tests:
1
const res = [] for (const el of arr) { res.push(someFn(el)) }
2
const res = [] for (let el of arr) { res.push(someFn(el)) }
3
const res = [] for (var el of arr) { res.push(someFn(el)) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
1
2
3
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!
Related benchmarks:
Test for
Test for
for vs jQuery each 2
Lodash.js vs Native MAGIC
js forEach vs for..of for @nodejs_ru
Comments
Confirm delete:
Do you really want to delete benchmark?