SlideShare a Scribd company logo
Ruby Performance
Performance Profiling
require 'rubygems'
require 'ruby-prof'


result = RubyProf.profile do
 your_code_here
end
Call Graph


printer = RubyProf::GraphPrinter.new(result)
printer.print(STDOUT, 0)
Call Graph


printer = RubyProf::GraphPrinter.new(result)
printer.print(STDOUT, 0)
Ruby performance
Flat


printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT, 0)
Flat

More Related Content

DOCX
Assignement of programming & problem solving ass.(3)
DOCX
Tugas3
PPTX
PDF
Javascript Styles and some tips
DOCX
Array using recursion
PPTX
Ruby Class 1
KEY
Código Saudável => Programador Feliz - Rs on Rails 2010
Assignement of programming & problem solving ass.(3)
Tugas3
Javascript Styles and some tips
Array using recursion
Ruby Class 1
Código Saudável => Programador Feliz - Rs on Rails 2010

Viewers also liked (7)

PDF
The ruby-way
PDF
Let's Learn Ruby - Basic
PPTX
Ruby, the language of devops
PDF
Do your own hacking evening - RubyConf UR
KEY
Writing your own programming language to understand Ruby better - Euruko 2011
PPT
RHS Year 1 week 15 2011
PPT
Eye safety presentation
The ruby-way
Let's Learn Ruby - Basic
Ruby, the language of devops
Do your own hacking evening - RubyConf UR
Writing your own programming language to understand Ruby better - Euruko 2011
RHS Year 1 week 15 2011
Eye safety presentation
Ad

More from Sarah Allen (20)

PDF
Internet security: a landscape of unintended consequences
PPTX
RTMP: how did we get to now? (Demuxed 2019)
PDF
Communication is a Technical Skill
PPTX
Improving Federal Government Services
PPTX
Transparency Wins
PPTX
A Short History of Computers
PPTX
Making Software Fun
PPTX
Power of Transparency
PPTX
Designing for Fun
PDF
Ruby in the US Government for Ruby World Conference
PDF
Identities of Dead People
PDF
Let's pretend
PDF
3 Reasons Not to Use Ruby
PDF
Ruby Nation: Why no haz Ruby?
PDF
Why no ruby in gov?
PDF
People Patterns or What I learned from Toastmasters
PDF
Blazing Cloud: Agile Product Development
PDF
Crowdsourced Transcription Landscape
PDF
Lessons Learned Future Thoughts
PDF
Mobile Web Video
Internet security: a landscape of unintended consequences
RTMP: how did we get to now? (Demuxed 2019)
Communication is a Technical Skill
Improving Federal Government Services
Transparency Wins
A Short History of Computers
Making Software Fun
Power of Transparency
Designing for Fun
Ruby in the US Government for Ruby World Conference
Identities of Dead People
Let's pretend
3 Reasons Not to Use Ruby
Ruby Nation: Why no haz Ruby?
Why no ruby in gov?
People Patterns or What I learned from Toastmasters
Blazing Cloud: Agile Product Development
Crowdsourced Transcription Landscape
Lessons Learned Future Thoughts
Mobile Web Video
Ad

Ruby performance