effective profiling

G

Giles Bowkett

I have a friend who's run into some profiling problems. He set up a
profiler on a Rails app, maybe the default benchmarking stuff Rails
comes with, I'm not sure. Unit tests run 60s normally, and come in at
an hour and a half with the profiler going.

That sounds pretty extreme to me. What's the best way to profile a big
app in Ruby? They've got a lot of recursive cloning going on, I think
that's probably the issue, but how do they find out for sure?
 
A

Alex Young

Giles said:
I have a friend who's run into some profiling problems. He set up a
profiler on a Rails app, maybe the default benchmarking stuff Rails
comes with, I'm not sure. Unit tests run 60s normally, and come in at
an hour and a half with the profiler going.
Is that with profile (rather slow) or ruby-prof (should be much faster)?
 
M

M. Edward (Ed) Borasky

Giles said:
I have a friend who's run into some profiling problems. He set up a
profiler on a Rails app, maybe the default benchmarking stuff Rails
comes with, I'm not sure. Unit tests run 60s normally, and come in at
an hour and a half with the profiler going.

That sounds pretty extreme to me. What's the best way to profile a big
app in Ruby? They've got a lot of recursive cloning going on, I think
that's probably the issue, but how do they find out for sure?
Perhaps premature optimization isn't so bad after all. :) Seriously,
though, profiling is a form of testing, and if you're going to do
test-driven development but *not* performance testing, you're finding
only *some* of the bugs. So the best way to profile a big application,
assuming a total absence of software performance engineering during its
construction, would be to break it up into smaller pieces in top-down
fashion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,799
Latest member
Mercury_Dev

Latest Threads

Top