difference wrap or no? (v2)

Revision 2 of this benchmark created by buzz on


Preparation HTML

<script src="//rawgit.com/CrossEye/ramda/master/ramda.js"></script>
<script>var oldRamda = ramda;</script>
<script src="//rawgit.com/Ramda/ramda/master/ramda.js"></script>

Setup

l1 = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
    l2 = [1,3,5,7,9,11,13,15];
    
    l3 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'];
    l4 = ['e', 'f', 'g', 'h', 'i', 'j'];

Test runner

Ready to run.

Testing in
TestOps/sec
manual branchy difference
oldRamda.difference(l1, l2);
ready
wrapped fn unbranchy difference
ramda.difference(l1, l2);
ready
old chars
oldRamda.difference(l3, l4);
ready
new chars
ramda.difference(l3, l4);
ready

Revisions

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