# How to test the performance of our code

**URL:** <https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609>\
**Category:** Rails\
**Created:** [July 15, 2010, 10:01am UTC](https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609 "2010-07-15T10:01:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swetha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@swetha](https://www.ruby-forum.com/u/swetha)\
**Post date:** [July 15, 2010, 10:01am UTC](https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609/1 "2010-07-15T10:01:40Z")

</div>

Hi all,

I want to know ,what factors are involved in checking the performance  
of our code in rails 2.3.5 and above versions?

And also whats the difference between rails 2.3.5 and earlier  
versions ?

---

<div class="post-metadata">

**Author:** ![swetha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@swetha](https://www.ruby-forum.com/u/swetha)\
**Post date:** [July 15, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609/2 "2010-07-15T15:37:14Z")

</div>

swetha wrote:

> Hi all,
> 
> I want to know ,what factors are involved in checking the performance  
> of our code in rails 2.3.5 and above versions?

Try googling ‘rails performance testing’

> And also whats the difference between rails 2.3.5 and earlier  
> versions ?

Try reading the Rails changelogs

Generally speaking, people here won’t do your homework for you,  
figuratively or literally. Do some research on your own, then come back  
with more focused questions.

---

<div class="post-metadata">

**Author:** ![swetha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@swetha](https://www.ruby-forum.com/u/swetha)\
**Post date:** [July 15, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609/3 "2010-07-15T15:46:31Z")

</div>

On Thu, Jul 15, 2010 at 8:37 PM, Ar Chron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> swetha wrote:
> 
> > Hi all,
> > 
> > I want to know ,what factors are involved in checking the performance  
> > of our code in rails 2.3.5 and above versions?

Same as with just about any platform, benchmarks and code inspection.

Tools I found useful: newrelic-rpm, ruby-prof, kcachegrind

---

<div class="post-metadata">

**Author:** ![swetha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@swetha](https://www.ruby-forum.com/u/swetha)\
**Post date:** [July 15, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/how-to-test-the-performance-of-our-code/191609/4 "2010-07-15T17:34:23Z")

</div>

swetha wrote:

> I want to know ,what factors are involved in checking the performance  
> of our code in rails 2.3.5 and above versions?
> 
> And also whats the difference between rails 2.3.5 and earlier  
> versions ?

Are you having performance and/or scaling problems right now? If not  
then you don’t have a performance or scaling problem.

I’d take the 37signals approach and deploy a beta of your application,  
and attach New Relic (or similar) performance monitoring to it. Then  
worry about performance or scaling issues when New Relic tells you that  
you have a problem.

> **[Getting Real](https://basecamp.com/gettingreal)**
>
> The smarter, faster, easier way to build a successful web application

That being said, common sense still applies. A good test suite,  
benchmarking and thorough code reviews may point out some obvious  
bottlenecks and misguided implementations.
