E
E
eldar_web2018-02-09 20:22:14
Ruby on Rails
eldar_web, 2018-02-09 20:22:14

How to check scripts for speed in Ruby on Rails?

Let's say we have methods:

def a 
..
end

def b
...
end

I want to measure the speed of their execution. How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-02-09
@eldar_web

Read the Benchmark.realtime documentation.
ruby-doc.org/stdlib-2.0.0/libdoc/benchmark/rdoc/Be...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question