Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Ramda vs FxTS
(version: 0)
This is a benchmark for describing lazy evaluation.
Comparing performance of:
Ramda with currying and composition vs FxTS
Created:
4 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@fxts/core/dist/fx.min.js"></script>
Script Preparation code:
var data = _.toArray(_.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:
Ramda with currying and composition
var result = R.pipe( R.pluck('counter'), R.filter(isOdd), R.map(square), R.filter(lessThanThreeDigits), R.take(3) )(data);
FxTS
var result = _.pipe( data, _.pluck('counter'), _.filter(isOdd), _.map(square), _.filter(lessThanThreeDigits), _.take(3), _.toArray );
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Ramda with currying and composition
FxTS
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Browser/OS:
Firefox 136 on Mac OS X 10.15
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Ramda with currying and composition
1211.8 Ops/sec
FxTS
446681.7 Ops/sec
Related benchmarks:
Ramda vs. Lodash (fix)
Ramda vs. Lodash vs. VanillaJS
Ramda vs. Lodash (Fixed & IIFE updated zero)
Ramda vs. Lodash 2021 v2
Comments
Confirm delete:
Do you really want to delete benchmark?