Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test lodash v2
(version: 0)
Comparing performance of:
Strict vs Lazy vs Lazy with one function vs Strict with one function
Created:
9 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/lodash/4.16.0/lodash.min.js"></script>
Script Preparation code:
var array = _.range(100);
Tests:
Strict
_.map(_.filter(array, function(n) { return n > 50; }), function(n) { return {test: n}; });
Lazy
_(array).filter(function(n) { return n > 50; }).map(function(n) { return {test: n}; }).value();
Lazy with one function
_(array).reduce(function(acc, n) { if(n > 50) acc.push({test: n}); return acc; }, []);
Strict with one function
_.reduce(array, function(acc, n) { if(n > 50) acc.push({test: n}); return acc; }, []);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Strict
Lazy
Lazy with one function
Strict with one function
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Length vs Lodash Size
Last Lodash Test
lodash range vs Array.from vs keys() + spread 234das
Spread Operator vs Lodash [2]
Array From vs lodash clone
Comments
Confirm delete:
Do you really want to delete benchmark?