ramda-auto-curry-cost (v12)

Revision 12 of this benchmark created on


Preparation HTML

<script src="https://cdn.rawgit.com/lodash/lodash/666cd8672ee5055385e9c2859cb500d0db9ea385/dist/lodash.js"></script>
<script src="https://rawgit.com/megawac/ramda/where2/ramda.js"></script>
<script>var meda = ramda;</script>
<script src="https://rawgit.com/CrossEye/ramda/ae679616dbecd6536367cf91a56d201b45efbadf/ramda.js"></script>

Setup

var filter = ramda.filter;
  var where = ramda.where;
  var isEmpty = ramda.isEmpty;
  var matches = _.compose(_.isEmpty, _.property('x'));
  
  var objs = [{
    x: [1, 2]
  }, {
    x: [1, 3]
  }, {
    x: []
  }, {
    x: [2]
  }, {
    x: [3]
  }, {
    x: [1]
  }, {
    x: [1, 2, 3]
  }, {
    x: []
  }, {
    x: [1, 2]
  }, {
    x: [1, 3]
  }];
  var filterEmpty = filter(where({
    x: isEmpty
  }));
  
  var medaFilterEmpty = filter(meda.where({
    x: isEmpty
  }));

Test runner

Ready to run.

Testing in
TestOps/sec
_.filter(objs, matches);
_.filter(objs, matches);
ready
filter(where({x: isEmpty}), objs);
filter(where({
  x: isEmpty
}), objs);
ready
filter(where({x: isEmpty}))(objs);
filter(filterEmpty)(objs);
ready
meda filter(where({x: isEmpty}), objs);
filter(meda.where({
  x: isEmpty
}), objs);
ready
meda filter(where({x: isEmpty}))(objs);
filter(medaFilterEmpty)(objs);
ready

Revisions

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