lazy.js
lazy.js copied to clipboard
Poor IE performance
IE10's results were disappointing. I'm kinda bummed by my Android4.3 (Samsung Note2) results also, but not too worried. http://jsperf.com/chain-vs-pipe/6 Reduced results:
Generic | Lazy | Lo-Dash chain
Chrome31 2,153 | 4,109 | 4,862
Firefox24 784 | 1,005 | 1,027
IE10 1,710 | 909 | 2,910
Android4.3 272 | 523 | 701
IE8 VM 30 | 36 | 42
However, IE10 performance seems to be better against competition in another 1 width array test.
Edit: I tried the MS suppled VirtualBox for testing IE8. Even after turning on VT-x in my bios, & hacking the image's Registry to avoid IE script warning, it still performed worse than I remember IE8 ran on the same machine (which was bad). I would throw out my IE8 VM's results.
Gah! Thanks for bringing this up! Competitive side activated... ;)
:) Or atleast conditionally test for IE & copy/paste Lo-dash code if you can.
Maybe post on your README your jsPerf tests? That will help get more mobile & IE testing I hope.
If I understand correctly from jsperf test the "non-lodash-underscore-lazy" i.e. the "no-library optimized loop" approach gave 10x faster results with the only drawback is that it takes 10x LOCs