Skip to content

Instantly share code, notes, and snippets.

@mikhailov
Created January 13, 2010 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikhailov/275996 to your computer and use it in GitHub Desktop.
Save mikhailov/275996 to your computer and use it in GitHub Desktop.
script/performance/benchmarker 50 "Banner.within_street('М').collect(&:street)"
user system total real
#1 20.300000 0.030000 20.330000 ( 25.248899)
script/performance/benchmarker 50 'Banner.search("^М*", :per_page => 10000).collect(&:street)'
user system total real
#1 107.010000 0.100000 107.110000 (109.985505)
script/performance/benchmarker 1000 'BannerFormat.all'
user system total real
#1 1.620000 0.040000 1.660000 ( 1.896457)
script/performance/benchmarker 1000 'BannerFormat.all_cached'
user system total real
#1 0.120000 0.010000 0.130000 ( 0.127948)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment