ramda-auto-curry-cost

JavaScript performance comparison

Revision 9 of this test case created by buzz and last updated

Preparation code

<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>
      
<script>
Benchmark.prototype.setup = function() {
  var objects = _.times(500, function(index) {
    return { 'a': (index % 2 == 0) };
  });

};
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
R.uniqWith
R.uniqWith(R.get('a'), objects);
pending…
R.uniqWith curried
R.uniqWith(R.get('a'))(objects);
pending…
fp.uniqBy
fp.uniqBy('a', objects);
pending…
fp.uniqBy curried
fp.uniqBy('a')(objects);
pending…
_.uniq
_.uniq(objects, 'a');
pending…

Compare results of other browsers

Revisions

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

0 Comments