Reputation: 11544
Can someone help with guidelines for load testing a Rails application, preferably using Rspec.
The load test i refer is with lots of data and not about multiple requests.
Basically i would like to setup all the data for the application, and will like to hit all the routes and get a metrics of the time.
I was looking into this gist using Rails Benchmark, However i can't list all my routes in a single spec.
Any tips about where to look out will be helpful.
Upvotes: 2
Views: 600
Reputation: 3129
I would advise you to leave that idea. This intention is a waste of time for a plenty of reasons:
When you are optimizing your app or setting it up for a high-load, you can not just start measuring every single request, because it's a waste of time. You should understand most tight parts of your app that can become bottle-necks.
My advise - read some material on designing high-load systems for newbies. And then you can use some special instruments like MS Azure load-testing on your staging or production environment.
Upvotes: 2