Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Map (Native vs Ramda vs Lodash vs Immutableytu6r5bfgvnr
(version: 0)
measures the speed of ramda's map vs Array's native map vs lodash map vs jkhg6tnjgbhfhjngbfImmutable map
Comparing performance of:
Ramda.map vs Array.prototype.map vs lodash.map vs Immutable.map
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js"></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/immutable/3.8.2/immutable.min.js'></script>
Script Preparation code:
function double(n) { return n*2; } var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]; var imdata = Immutable.fromJS(data);
Tests:
Ramda.map
R.map(data, double);
Array.prototype.map
data.map(double);
lodash.map
_.map(data, double);
Immutable.map
imdata.map(double);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Ramda.map
Array.prototype.map
lodash.map
Immutable.map
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:
Map (Native vs Ramda vs Lodash vs Immutable)
Map (Native vs Ramda vs Lodash vs Immutable) - sample size 100 1
Map (Native vs Ramda vs Lodash vs Immutable
Map (Native vs Ramda vs Lodash vs Immutable) with lambda function
Comments
Confirm delete:
Do you really want to delete benchmark?