5

Can someone please point out the best tools for stress testing in Rails 4. I know that there are already some questions on this subject but the ones I managed to find all seemed outdated.

If someone could point me to a similar question that would be great also.

Thanks in advance!

pcarvalho
  • 306
  • 3
  • 5
  • 1
    If you've found outdated posts, the best way to get some fresh answers in would be to place a bounty on them. Duplicating questions over and over won't help visitors searching for the same thing find a better answer. – slhck Jan 08 '14 at 20:29
  • Ups, sorry! I will do that. Just starting to get the hang of this. – pcarvalho Jan 09 '14 at 14:32

4 Answers4

7

Sendgrid recently came out with a pretty nice free solution that works for web or API endpoints.

Worked great for me:

https://loader.io

SethS
  • 449
  • 4
  • 12
6

Most performance testing tools will work just fine with Rails. I have used WebLOAD from RadView in the past.

Other relevant questions:

Community
  • 1
  • 1
Yasei No Umi
  • 1,574
  • 9
  • 23
3

Apache JMeter works well for me with Rails. It is very configurable. You can configure some logical behavior, run parallel requests, add your dictionaries to randomize queries and more.

Finally after performing tests I run Request Log Analyzer to get internal Rails metrics. The analyzer works well also for production logs.

gertas
  • 16,869
  • 1
  • 76
  • 58
3

You could try this gem GasLoadTester

require 'gas_load_tester'
require 'rest-client'
simple_test = GasLoadTester::Test.new({client: 10000, time: 60})
simple_test.run(output: true, file_name: '/mytest/mysite_result') do
  RestClient.get("https://www.example.com", {})
end
Tanapat Sainak
  • 734
  • 1
  • 10
  • 22