Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Rambda vs. Ramda vs. Lodash
Testing all benchmarks against each other using latest ESM.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Browser:
Firefox 123
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Lodash
3838.2 Ops/sec
Ramda without currying
2846.8 Ops/sec
Ramda with currying
959.3 Ops/sec
Rambda without currying
3510.0 Ops/sec
Rambda with currying
3502.2 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/ramda@0.28.0/dist/ramda.min.js"></script> <script> window.Ramda = { ...window.R } delete window.R </script> <script src="https://cdn.jsdelivr.net/npm/rambda@7.2.1/dist/rambda.umd.js"></script> <script> window.Rambda = { ...window.R } delete window.R </script>
Script Preparation code:
var data = _.range(10000).map(function(i) { return { counter: i } }); function isOdd(num) { return num % 2 === 1; } function square(num) { return num * num; } function lessThanThreeDigits(num) { return num.toString().length < 3; }
Tests:
Lodash
var result = _.chain(data) .map('counter') .filter(isOdd) .map(square) .filter(lessThanThreeDigits) .value();
Ramda without currying
var result = Ramda.filter(lessThanThreeDigits, Ramda.map(square, Ramda.filter(isOdd, Ramda.pluck('counter', data))));
Ramda with currying
var result = Ramda.pipe( Ramda.pluck('counter'), Ramda.filter(isOdd), Ramda.map(square), Ramda.filter(lessThanThreeDigits) )(data);
Rambda without currying
var result = Rambda.filter(lessThanThreeDigits, Rambda.map(square, Rambda.filter(isOdd, Rambda.pluck('counter', data))));
Rambda with currying
var result = Rambda.pipe( Rambda.pluck('counter'), Rambda.filter(isOdd), Rambda.map(square), Rambda.filter(lessThanThreeDigits) )(data);