ramda-auto-curry-cost (v10)

Revision 10 of this benchmark created by buzz on


Preparation HTML

<script src="https://rawgit.com/lodash/lodash/6ba2730c3fdf33db6f675d222194739b3c39aa22/lodash.js"></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 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}));

Test runner

Ready to run.

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

Revisions

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