I
I
imps2012-11-02 15:41:59
ruby
imps, 2012-11-02 15:41:59

Load/Stress/Performance test framework on ruby?

Dear habrazhiteli and residents, at work I had to face the following question: Is there a framework for load testing implemented in Ruby (with the condition that this framework is implemented not in ruby ​​on rails, but in ruby)?
After a short study, it was believed that those currently do not exist.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@mgyk, 2012-11-02
_

What exactly to test?
You can simply wrap the specs in a benchmark and get performance testing

describe Foo do
  context 'performance' do
  
    it 'takes time' do
      Benchmark.bm do |bm|
        bm.report("test1") {10000.times do;  do_something; end }
      end
    end
  end
end

S
sch1z0phr3n1a, 2012-11-03
@sch1z0phr3n1a

What is the reason for such a requirement for the language?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question