KnockoutJS collection rendering tests



Test 1
original: array replacement
myObservableArray(newUnderlyingArray)

data-bind="foreach: myObservableArray"


Test 2
original: array push
ko.utils.arrayPushAll(myObservableArray, newUnderlyingArray)

data-bind="foreach: myObservableArray"


Test 3
Fast: array replacement
myObservableArray(newUnderlyingArray)

data-bind="fastForEach: myObservableArray"


Test 4
Fast: array push
ko.utils.arrayPushAll(myObservableArray, newUnderlyingArray)

data-bind="fastForEach: myObservableArray"


^ Edit in JS Bin