How can I find the performance bottlenecks in my Ruby application? -


I have written a Ruby application which parses a lot of data from sources in HTML, How can I find out which areas of code are taking the longest?

Is there a good resource to improve the performance of Ruby applications? Or do you have any functionality coding criteria that you always follow?

For example, you always have

  output = string.new output  

or you use

  output = "# {part_one} # {part_two} \ n"  

Ruby-Professor is a Fast Code Profiler for Ruby. Its features include:

speed - this is a common extension and so is a lot faster than standard Ruby profiler.

Mode - Ruby professor can measure many different parameters including call bar, memory usage and object allocation.

Reports - Generate text and cross-referenced HTML reports

Flat profile - Reports generated by standard Ruby profiler Like

Graph Profiles - Similar to GProf, they show how long the method runs, which calls the methods and calls it in the way.

Call a Tree Profile - Output output results in the appropriate calltree format for the Katch Grid Profiling Tool.

Threads - Supports multiple sources simultaneously

recursive call - Support for profiling of recursive method calls Does


Comments