Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
map and join vs reduce small array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0
Browser:
Firefox 139
Operating system:
Windows
Device Platform:
Desktop
Date tested:
11 months ago
Test name
Executions per second
map join
7028513.0 Ops/sec
reduce
15416443.0 Ops/sec
Script Preparation code:
var strings = []; for (var i = 0; i < 5; i++) { strings[i] = { name: i }; }
Tests:
map join
strings.map(s => s.name).join('');
reduce
strings.reduce((a,n) => a+n.name, '');