Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
lodash flow vs ramdajs pipe
check this out
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 125
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Ramda PIPE
584499.4 Ops/sec
Lodash flow
202039.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
_.flow(_.filter(isEven),_.map(x => x + 1))(numbers);