Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Immutable: toArray vs toJS vs map + push
(version: 1)
Comparing performance of:
toArray vs toJS vs map + push
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.8.1/immutable.min.js"></script>
Script Preparation code:
var list = Immutable.List(); for (var i = 0; i < 100; i++) { list.push(i); }
Tests:
toArray
list.toArray();
toJS
list.toJS();
map + push
list.map(i => list.push(i))
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
toArray
toJS
map + push
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!
Comments
Confirm delete:
Do you really want to delete benchmark?