ramda-auto-curry-cost (v9)

Revision 9 of this benchmark created by buzz on


Preparation HTML

<script src="https://cdn.rawgit.com/ramda/ramda/v0.10.0/dist/ramda.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.3.1/lodash.min.js"></script>
<script src="https://jspm.io/system@0.9.js"></script>
<script>
System.import('npm:lodash-fp').then(function(_) {
  fp = _;
  document.getElementById('run').style.display = '';
});

document.getElementById('run').style.display = 'none';
</script>

Setup

var objects = _.times(500, function(index) {
    return { 'a': (index % 2 == 0) };
  });

Test runner

Ready to run.

Testing in
TestOps/sec
R.uniqWith
R.uniqWith(R.get('a'), objects);
ready
R.uniqWith curried
R.uniqWith(R.get('a'))(objects);
ready
fp.uniqBy
fp.uniqBy('a', objects);
ready
fp.uniqBy curried
fp.uniqBy('a')(objects);
ready
_.uniq
_.uniq(objects, 'a');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.