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 (Android 14; Mobile; rv:138.0) Gecko/138.0 Firefox/138.0
Browser:
Firefox Mobile 138
Operating system:
Android
Device Platform:
Mobile
Date tested:
11 months ago
Test name
Executions per second
Iterator
218642.4 Ops/sec
Array
4253358.5 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)