# How to Fix Slow Code in Ruby

DevFeed: [How to Fix Slow Code in Ruby](<https://devfeed.tech/articles/how-to-fix-slow-code-in-ruby-1413.md>)

Original publisher: [Read original article](<https://shopify.engineering/how-fix-slow-code-ruby>)

Author: Jay Lim

Published: 2020-05-08T15:35:00Z

Content type: tutorial

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [App](<https://devfeed.tech/topics/app.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [case-studies](<https://devfeed.tech/tags/case-studies.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [observability](<https://devfeed.tech/tags/observability.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profile](<https://devfeed.tech/tags/profile.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

A Ruby tutorial on finding and fixing slow code through profiling and benchmarking. It explains using runtime metrics to identify performance bottlenecks and verify that a proposed change is faster.

## Source excerpt

How do we effectively find out why our application is slow? Even if we have a fix for the slow code, how can we prove that our new code is faster?