lodash wrapper

Benchmark created by seb on


Preparation HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/0.10.0/lodash.min.js"></script>

Setup

// do some bogus calculation.
    function fn(el) { if (el < 0) { return el; } }
        
    var arr = [1,2,3,4,5,6,7,8,9,10];
    var wrapped = _(arr);

Test runner

Ready to run.

Testing in
TestOps/sec
wrapped.each(fn)
wrapped.each(fn)
ready
_.each(arr, fn)
_.each(arr, fn)
ready

Revisions

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