Re:Backbone Events vs. Ember Bindings: A Benchmark
by krosaen on Wednesday February 22, 2012 @09:46AM
(#3621016)
There's some discussion on the ko google groups about this :
https://groups.google.com/forum/?fromgroups#!topic/knockoutj...
you are right, the correct version is perhaps slightly faster than the ember, but way slower than the backbone example.
However, by leveraging an optimized ko.computed implementation
http://mbest.github.com/knockout-deferred-updates/
the results are much more impressive.
Re:Backbone Events vs. Ember Bindings: A Benchmark
by Lazare on Wednesday February 22, 2012 @07:14PM
(#3623185)
I'm don't agree that that the version with unused intermediate computed observables is the only correct version (or that there even is only one correct version).
Avoiding the use of intermediate computeds makes the Knockout version roughly as fast as Backbone for this specific benchmark, and more closely replicates the functionality of the Backbone example. That sounds like the correct version to me.
My take on it: http://jsfiddle.net/HusVw/1/
And guess what, it's _much_ slower. (And I'm a happy KO user).