Next Meeting - Monday, Sept. 21, 6:30 p.m.

0 views
Skip to first unread message

Tim Morgan

unread,
Sep 18, 2009, 4:35:34 PM9/18/09
to tul...@googlegroups.com
Next Tulsa.rb meeting is Monday, Sept. 21st, 6:30 p.m., at the Collaboratorium, 10th floor at 111 W. 5th St. in Downtown Tulsa.

Pizza will be provided.

Come prepared to talk about what you've been working on and what you're learning.

I'll be sharing what I learned fixing my 10K LOC rails app to run on Ruby 1.9. It was easier than I thought, but there were a couple of strange problems I'd like you to avoid in your own projects.

See you on Monday!

-Tim

Starr Horne

unread,
Sep 18, 2009, 5:18:32 PM9/18/09
to tul...@googlegroups.com
I'll be there. That's a big rails app, btw. :)

SH

Tim Morgan

unread,
Sep 21, 2009, 4:56:48 PM9/21/09
to tul...@googlegroups.com
Don't forget about our meeting tonight at 6:30. See you soon!

Brad V. aka iBspoof

unread,
Sep 21, 2009, 5:30:30 PM9/21/09
to Tulsa Ruby User Group
Now w/ Joe Mammas pizza!

Tim Morgan

unread,
Sep 22, 2009, 1:40:16 PM9/22/09
to Tulsa Ruby User Group
Thanks to everyone who made it to the meeting last night, braving the
sideways rain and zero visibility.

Here is my presentation, if you can find any use for its content at a
later date: http://tinyurl.com/l3g63e

For yous who aren't git ninjas, you can easily view on GitHub a commit
listed in the presentation by copying the commit sha1 hash (that
freakishly long set of letters and numbers) from the slides and paste
into a url like this: http://github.com/seven1m/onebody/commit/c1b2c9279495ab8190ee1744f7018f180830c484

The memory and speed test results in the last few slides were running
my app on Webrick, which I would never do in production (except that
one time I did it in production). Also, that was running in
development mode -- I'm not sure how that would affect the numbers.

So, unhappy with those tests, I thought I would do some more testing
(totally unscientific, remember) comparing Phusion Passenger on Ruby
Enterprise Edition vs. Ruby 1.9 running my app in production mode.
Here are the results...

2 instances on Ruby Enterprise Edition (PassengerMaxPoolSize 2)

4.2% 87340 ruby Rails: /home/tim/p/
onebody
4.1% 85036 ruby Rails: /home/tim/p/onebody

2 instances on Ruby 1.9 (PassengerMaxPoolSize 2)

4.2% 88328 ruby1.9 Rails: /home/tim/p/
onebody
4.2% 88244 ruby1.9 Rails: /home/tim/p/onebody

Yes, that is saying what you think it's saying. Ruby 1.9 is using
slightly *more* memory than Ruby Enterprise Edition. I did this three
times to make sure I wasn't missing something, and these numbers are
typical. REE tends to beat 1.9 by MB or two. I don't understand why.

Now, let's test speed...

Ruby Enterprise Edition:

Processing PeopleController#show (for 127.0.0.1 at 2009-09-22
12:31:56) [GET]
Completed in 380ms (View: 317, DB: 5) | 200 OK [http://onebody.local/
people/27942]

Processing StreamsController#show (for 127.0.0.1 at 2009-09-22
12:31:54) [GET]
Completed in 466ms (View: 435, DB: 3) | 200 OK [http://onebody.local/
stream]

Ruby 1.9:

Processing PeopleController#show (for 127.0.0.1 at 2009-09-22
12:29:48) [GET]
Completed in 176ms (View: 97, DB: 5) | 200 OK [http://onebody.local/
people/27942]

Processing StreamsController#show (for 127.0.0.1 at 2009-09-22
12:29:45) [GET]
Completed in 156ms (View: 128, DB: 2) | 200 OK [http://onebody.local/
stream]

Now *that's* significant. I ran these tests 3 times as well, and these
numbers are typical. 1.9 cut the response time in half or better.

So, there you go.

Starr Horne

unread,
Sep 22, 2009, 1:48:28 PM9/22/09
to tul...@googlegroups.com
A 50% performance increase. Nice. :)

SH

Robin Curry

unread,
Sep 22, 2009, 5:14:01 PM9/22/09
to Tulsa Ruby User Group
Cool. Thanks for sharing those Tim. And thanks again to you and Brad
for putting last night's meeting together. Look forward to getting
together again in a month.


Robin



On Sep 22, 12:48 pm, Starr Horne <snho...@gmail.com> wrote:
> A 50% performance increase. Nice. :)
>
> SH
>
> On Tue, Sep 22, 2009 at 12:40 PM, Tim Morgan <seve...@gmail.com> wrote:
>
> > Thanks to everyone who made it to the meeting last night, braving the
> > sideways rain and zero visibility.
>
> > Here is my presentation, if you can find any use for its content at a
> > later date:http://tinyurl.com/l3g63e
>
> > For yous who aren't git ninjas, you can easily view on GitHub a commit
> > listed in the presentation by copying the commit sha1 hash (that
> > freakishly long set of letters and numbers) from the slides and paste
> > into a url like this:http://github.com/seven1m/onebody/commit/c1b2c9279495ab8190ee1744f701...
Reply all
Reply to author
Forward
0 new messages