Re:The Future of JavaScript MVCs
by swannodette on Thursday December 19, 2013 @03:13PM
(#6937501)
Not true, all Om timing information includes writing to localStorage. I just don't load the page from localStorage because that made benchmarking tedious for me.
The overhead from localStorage appears to account for a significant chunk of the difference in performance. You can remove the localStorage calls with 'Backbone.sync = $.noop' or similar. After doing that and clearing localStorage, benchmark one drops to around 350ms, and benchmark 2 drops to around 2000ms.
Of course, benchmark 2 is where your library really shines, and backbone still takes its time with that one.