Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
lodash chain vs ramdajs pipe
check this out
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Browser:
Firefox 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
Ramda PIPE
500697.3 Ops/sec
Lodash flow
442303.5 Ops/sec
HTML Preparation code:
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.27.0/ramda.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.fp.js"></script>
Script Preparation code:
var numbers = Array(100).fill().map((item, index) => index + 1); var isEven = number => number % 2 === 0;
Tests:
Ramda PIPE
R.pipe(R.filter(isEven), R.map(x => x + 1))(numbers);
Lodash flow
_.chain(numbers).filter(isEven).map(x => x + 1).value();