ruby - How to diagnose slow rails / rake / rspec tasks -


i have significant delay (c.10 seconds) when running tasks like:

  • rails server
  • rake assets:precompile
  • rspec spec

the delay @ point before says:

    connecting database specified database.yml 

i've found several articles identifying 10 or more different parameters can tuned speed rake , / or rspec runs. i'm reluctant start fiddling around 10 different parameters without better understanding of what's causing it.

is there way diagnose what's causing delay? more verbose?

supplementary info: ubuntu 14 ruby 1.9.3 rails 3.2

thanks @maxwilliams link post how debug slow rails app boot time?

i started using mark ellul's bumbler - http://github.com/mark-ellul/bumbler

it gave me wanted - insight what's going in background , gems taking time. of course still need speed slow ones (fog , authlogic seem 2 of main culprits). that's @ different question.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -