Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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/136.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 136
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Map to Array for 100 Items
246K/s
Map to Array for 10,000 Items
2K/s
View exact numbers
Test name
Executions per second
✓
Map to Array for 100 Items
245,670 Ops/sec
Map to Array for 10,000 Items
1,681 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);