dtao / lazy.js

Like Underscore, but lazier
http://danieltao.com/lazy.js/
MIT License
6.01k stars 268 forks source link

Update libs/charts in the perf suite. #143

Open jdalton opened 9 years ago

jdalton commented 9 years ago

Now that lodash v3 is out with lazy eval support in it's chaining syntax it would be nice to update the benchmark. I think the current benchmark is using v2.0.0 which is like 1½ yrs old.

Old way:

lodash.max(lodash.filter(lodash.map(array, increment), isEven))

New way:

lodash(array).map(increment).filter(isEven).max().value()
whiteinge commented 9 years ago

+1 for updating the comparison page to take lodash's chaining syntax into account. (Would be cool to see lodash and lodash (chain) side-by-side too.)

http://jsperf.com/lodash-vs-lazy-filter-chains/6