Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Map to Array (100 and 10,000)
This test exists to benchmark the conversion of Map().values() to an Array.
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/133.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Map to Array for 100 Items
204444.3 Ops/sec
Map to Array for 10,000 Items
1457.6 Ops/sec
Tests:
Map to Array for 100 Items
var fooSet = new Map(); for(var i=0;i<100;i++) { fooSet.set(i, i); } var other = Array.from(fooSet);
Map to Array for 10,000 Items
var fooSet = new Map(); for(var i=0;i<10000;i++) { fooSet.set(i, i); } var other = Array.from(fooSet);