Created
October 26, 2011 22:17
-
-
Save davidguttman/1318185 to your computer and use it in GitHub Desktop.
quick render bench for backbone (and coffeescript)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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