Optimizing Ruby performance: Observations from thousands of real-world services | Datadog

21-Nov-2025 594
Learn about trends in Ruby development and opportunities for improving performance that many organizations are leaving on the table. Choice of libraries is key to optimizing Ruby performance Ruby has a thriving ecosystem of libraries. On average, according to our findings, Ruby applications spend 82% of their CPU time in library code. This means that choosing the right libraries and using them efficiently should be top priorities for optimizing Ruby application performance. It’s worth emphasizing here that Ruby tends to be relatively compute-intensive. Our data backs up other findings that Ruby applications are generally less I/O-heavy, spending as much or more time on CPU as they do waiting on other services or database requests.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle