Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array constructor vs literal performance, 12345
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/139.0.0.0 Safari/537.36
Browser:
Chrome 139
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Array literal (assign by index) - 10 items
126.4M/s
Array constructor - 10 items
124.9M/s
View exact numbers
Test name
Executions per second
✓
Array literal (assign by index) - 10 items
126,432,736 Ops/sec
Array constructor - 10 items
124,853,512 Ops/sec
Tests:
Array constructor - 10 items
var arr = new Array();
Array literal (assign by index) - 10 items
var arr = [];