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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Falkon/24.01.75 QtWebEngine/5.15.16 Chrome/87.0.4280.144 Safari/537.36
Browser:
Chrome 87
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
Iterator
0.0 Ops/sec
Array
481526.2 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)