--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To post to this group, send email to pdx...@googlegroups.com.
To unsubscribe from this group, send email to pdxruby+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/pdxruby/-/DKENdm6McsQJ.
I've implemented Jobagator.org in both Rails and NodeJS now. The NodeJS version is sooo much faster: http://www.curiousattemptbunny.com/2012/10/jobagator-in-nodejs-is-notably-faster.html
My Rails app is taking over three seconds to render a trivial index page with a list of 10 items. This seems wrong. Can someone suggest some tools and techniques to speed up my app or identify the problem? Attached is the section of the Rails log and NewRelic output showing which part of the app they think is slow, and the code these claim is responsible for the slowdown. Can someone that knows Rails please meet up with me to look over my code at one of the two monthly Ruby meetups, or three weekly hackathons? Would someone that knows how to fix these sorts of problems be interested in a quick contract job to help me out? Thanks!
You know, we rarely hack at Ruby meetings. Maybe at the next one we dive into this?
--
If you haven't already, you should try New Relic. Collects these stats from inside your app so it's more consistent and you can experiment with changes and see what worked pretty quickly. (I have nothing to do with them, it's just an awesome tool.)
Conceptual exploration is meaningless if it doesn't start from a
position of good faith and at least a little bit of meaningful data.
In this case:
* We are comparing two solitary page loads against unknown apps
running on unknown stacks.
* The app designs are clearly different. It's not useful to say "I
know this is apples and oranges" when you proceed to make a graphic
saying "look, this orange is so much more bumpy than the apple".
* The numbers were collected with a primed cache, as evidenced by the
many 304 responses. I could assume that neither app has any meaningful
optimization there, but I don't have any reason to.
* The Rails app's total includes requests to external analytics
services like Google Analytics and Mixpanel, while the Node app's does
not. This is mentioned nowhere, but the "total" numbers are
highlighted as if they mean something.
You're right that the Rails/Node aspect of the comparison is a red
herring. I'd go a little further and call it specious. I would have
been glad to hear about how Merlyn rewrote his app to make it much
faster. That would have been an interesting conversation, and one I'd
still be glad to have.
In this case, we have an opaque, misleading ball of data represented
in a manner obviously likely to make people upset and angry. The
question mark doesn't make "Rails sucks, NodeJS rules" any less
confrontational. It was cross-posted to both the JS and Ruby mailing
lists. As a longtime troll, I recognize trolling when I see it.
On Fri, Oct 12, 2012 at 10:16 AM, Jesse Cooke <je...@jc00ke.com> wrote:You know, we rarely hack at Ruby meetings. Maybe at the next one we dive into this?There's a Ruby Beginners Meetup next Tuesday <http://calagator.org/events/1250462852>. It would be great if Merlyn (CC'ed) could drop by for us to help debug the Rails performance issue. And then have someone present how they debugged and fixed the problem at the next general Ruby meeting.
-igal
> We've got up to an hour of time available on the November meeting
> agenda, and plenty more on the December agenda.
I would like to take ten minutes or so to draw some crude pictures of
islands and sailboats and stuff (and tell a little story about how
clever people can be) which might make a good lead in to the topic if
anyone is interested.
-- Markus
On Fri, Oct 12, 2012 at 8:13 AM, Igal Koshevoy <ig...@pragmaticraft.com> wrote:I'm not seeing Matt's response in the thread above this, so this may
> On Thu, Oct 11, 2012 at 11:12 PM, Matt Youell <ma...@youell.com> wrote:
>>
>> If you haven't already, you should try New Relic. Collects these stats
>> from inside your app so it's more consistent and you can experiment with
>> changes and see what worked pretty quickly. (I have nothing to do with them,
>> it's just an awesome tool.)
have been taken out of context
but: last I checked, Merlyn works at New Relic. ;>
> > but: last I checked, Merlyn works at New Relic. ;>Really? Do you suppose curiousattemptbunny might be trying to lure us
> Huh, Linkedin says he is. Hmmm. My leg, it feels like it's being
> pulled on.
down the rabbit hole? I'm shocked, shocked I tell you! :)
Hmmm. I wonder if there's anything worth knowing about lurking down there?
Ugh. Just noticed that the next meeting (Tues., Nov. 6) is election day.
I was thinking about presenting on this, but I'll be at an election party.