Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
creating maps vs creating objects
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 128
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
creating maps
3K/s
creating objects
423/s
View exact numbers
Test name
Executions per second
✓
creating maps
2,703 Ops/sec
creating objects
423 Ops/sec
Tests:
creating maps
for (let i = 0; i < 1000; ++i) { const map = new Map() map.set(i + "", i) }
creating objects
for (let i = 0; i < 1000; ++i) { const obj = {} obj[i + ""] = i }