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 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Browser:
Firefox 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Map to Array for 100 Items
72719.6 Ops/sec
Map to Array for 10,000 Items
865.4 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);