by Lazare · 14y ago · 0 comments
I was curious how it would stack up - the answer seems to be "pretty well, actually". Of course, all the normal warnings about synthetic benchmarks apply. :)
Edit: I'm updated the JSFiddle to attempt to properly clean up the Knockout bindings. Probably. As I said, I'm pretty new to Knockout still, and may well have made a mistake.
Embarrassing. :)
My take on it: http://jsfiddle.net/HusVw/1/
And guess what, it's _much_ slower. (And I'm a happy KO user).
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.
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.