I would like to performance testing a Rails app.
The real world data is 100 MB in size.
But Rails always rebuilds the test database, which overwrites the real world data.
So how to the performance testing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would create a new environment called “performance”. You need this to replicate the production settings of your app (class caching, templates etc) and then load the database. In the past I have created a DB specifically for performance testing, created a rake task that executes the necessary migrations/loading and then called the rails performance script.
You can also turn the fixture behaviour off in your tests – depends on which test framework you are using.
I also found this useful post on Running Rails performance tests on real data that has some details on this approach.