Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test of 2
(version: 0)
test
Comparing performance of:
fomEntries vs reduce
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var data = []; for (var i=0;i<10000;i++) { data.push({key: 'key' + i, value : 'value' + i}) }
Tests:
fomEntries
Object.fromEntries(data.map(({key, value}) => [key, value]))
reduce
data.reduce((acc, current) => { acc[current.key] = current.value; return acc; }, {});
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
fomEntries
reduce
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
test reduc
Test of 2.1
Map convert
Lodash keyBy vs JS Map
Comments
Confirm delete:
Do you really want to delete benchmark?