Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Iterator map vs Array map
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:
11 months ago
Test name
Executions per second
Iterator
754321.8 Ops/sec
Array
1348265.6 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
Tests:
Iterator
array.values().map(item => item * 2).map(item => item ** 2).reduce((a, b) => a + b)
Array
array.map(item => item * 2).map(item => item ** 2).reduce((a, b) => a + b)