Created
December 26, 2009 12:25
-
-
Save josevalim/263932 to your computer and use it in GitHub Desktop.
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
## Optimizing instrumentation | |
# Master | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
129 198 250 224 802 630 6274 4411 4659 | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
128 195 247 222 798 621 6026 4314 4547 | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
133 201 252 228 806 625 6032 4304 4510 | |
# Perf | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
133 212 260 230 815 495 6151 2663 2776 | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
127 207 250 225 797 478 6032 2628 2733 | |
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 | |
130 209 253 228 803 485 5999 2628 2748 | |
# * index is slower because we are now instrumenting render :text | |
# and we were not previously. | |
## Optimizing <%= render(@posts) %> (after instrumentation optimization) | |
# Master | |
uniq_100 diff_100 | |
2854 5544 | |
uniq_100 diff_100 | |
2841 5506 | |
# Perf | |
uniq_100 diff_100 | |
2720 5581 | |
uniq_100 diff_100 | |
2684 5558 | |
# * We optimize <%= render(@posts) %> (~140ms faster) but <%= render(@posts + @another) %> | |
# gets a little bit slower (~40ms). Is this a valid optimization then? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment