How to test the performance of our code

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 ?

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.

On Thu, Jul 15, 2010 at 8:37 PM, Ar Chron [email protected] 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

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.

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.