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
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(1000);
Tests:
Strict
_.map(_.filter(array, function(n) { return n > 998; }), function(n) { return {test: n}; });
Lazy
_(array).filter(function(n) { return n > 998; }).map(function(n) { return {test: n}; });
Lazy with one function
_(array).reduce(function(acc, n) { if(n <= 998) return acc; else { acc.push({test: n}); return acc; } }, []);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Strict
Lazy
Lazy 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:
lodash range vs Array.from vs keys() + spread
lodash range vs Array.from vs keys() + spread 234das
Length vs Lodash Size 100k
Spread Operator vs Lodash [2]
Array From vs lodash clone
Comments
Confirm delete:
Do you really want to delete benchmark?