Skip to content

Instantly share code, notes, and snippets.

@davidguttman
Created October 26, 2011 22:17
Show Gist options
  • Save davidguttman/1318185 to your computer and use it in GitHub Desktop.
Save davidguttman/1318185 to your computer and use it in GitHub Desktop.
quick render bench for backbone (and coffeescript)
old_render = @render
@render = =>
t0 = new Date()
ret = old_render()
t1 = new Date()
t = t1 - t0
window.benches or= {}
window.benches.rows or= []
window.benches.rows.push t
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment