@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
30 lines (23 loc) • 644 B
text/coffeescript
new TestSuite
'title': 'Input Update'
'subtitle': 'Update the value of an input field 10,000 times'
'measureMethod': 'sync'
'warmUps': 10000
'timesToRun': 10000
'setupFn': (container$)->
= 'prop':'value'
= $('<input type="text">')
currentValue = 0
SimplyBind('prop').of()
.to('value').of()
= ()-> "value#{currentValue++}"
container$.append
return
'teardownFn': (container$)->
container$.empty()
SimplyBind.unBindAll(, true)
SimplyBind.unBindAll(, true)
delete
delete
delete
'testFn': ()-> .prop = ()