@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
28 lines (21 loc) • 574 B
text/coffeescript
new TestSuite
'title': 'Div HTML Same Update'
'subtitle': 'Update the content of a div with the same value 10,000 times'
'measureMethod': 'sync'
'warmUps': 10000
'timesToRun': 10000
'setupFn': (container$)->
= 'prop':'value'
= $('<div />')
SimplyBind('prop').of()
.to('innerHTML').of()
container$.append
return
'teardownFn': (container$)->
container$.empty()
SimplyBind.unBindAll(, true)
SimplyBind.unBindAll(, true)
delete
delete
delete
'testFn': ()-> .prop = 'value'