Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array test
(version: 0)
Comparing performance of:
pre-allocated vs variable size
Created:
9 years ago
by:
Guest
Jump to the latest result
Tests:
pre-allocated
for(var test = new Array(1000), i = 0; i < 1000; i++) test[i] = i
variable size
for(var test = [], i = 0; i < 1000; i++) test.push(i)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
pre-allocated
variable size
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:
array assignment vs array fill
Array isArray vs instanceof vs isEqual vs isLessThan2223
Array mutation VS creation
Populate array: array literal vs array constructor
testando 123 teste
Comments
Confirm delete:
Do you really want to delete benchmark?