Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Create empty array without elements
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Object.create(Array.prototype)
259.9M/s
new Array()
229.8M/s
Array()
229.0M/s
[]
224.7M/s
Array.of()
61.0M/s
JSON.parse()
12.4M/s
View exact numbers
Test name
Executions per second
✓
Object.create(Array.prototype)
259,878,400 Ops/sec
new Array()
229,756,176 Ops/sec
Array()
229,036,832 Ops/sec
[]
224,658,592 Ops/sec
Array.of()
61,000,000 Ops/sec
JSON.parse()
12,443,852 Ops/sec
Tests:
[]
a = []
new Array()
a = new Array()
Array()
a = Array()
Array.of()
a = Array.of()
JSON.parse()
a = JSON.parse('[]')
Object.create(Array.prototype)
a = Object.create(Array.prototype)