Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulating Heavy Usage in Rails / Heroku

Is there a tool that can help me simulate high levels of usage of my rails app? I'm looking to test how responsive it will stay as usage grows. I'm deploying on Heroku and I'd like to know at what point to add additional capacity.

Something that could also give me performance stats would be especially useful.

like image 558
Andrew Lauer Barinov Avatar asked Dec 17 '25 15:12

Andrew Lauer Barinov


2 Answers

The Apache HTTP server benchmarking tool is what you are looking for: http://httpd.apache.org/docs/2.0/programs/ab.html

Then run your test with

ab -c 20 -n 5000 http://www.yourdomain.com/

to see the performance of you application with 20 consecutive requests and 5,000 requests in total.

Read this and this on heroku performance.

like image 178
jones Avatar answered Dec 19 '25 06:12

jones


You can use JMeter (free) to test your dev and production site. You also can use something like BLITZ.IO but it'll cost money (free service has a duration/user limit).

like image 31
Zepplock Avatar answered Dec 19 '25 05:12

Zepplock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!