Instant Rails speed on my puter


#1

Hi.

I’ve installed Instant Rails, and when testing my rails apps, I’m
noticing the load time is quite noticable.

I’m concerned when I convert to real produciton, going live, if there’s
going to be the same delay, plus additional bandwith traveling time.

I am running on a pentium 4…

Insights on speed…

Thanks

Dominic S.


#2

On Tue, Jun 06, 2006 at 03:20:34AM +0200, Dominic S. wrote:

I’m concerned when I convert to real produciton, going live, if there’s
going to be the same delay, plus additional bandwith traveling time.

There is a huge difference between development and production modes.
Development reloads everything for every request; production does not
:slight_smile:

I am running on a pentium 4…

I don’t know what happens in Instant Rails; but out of the standard
servers, WEBrick is slower than lighttpd; Apache on CGI is slower than
all of them :slight_smile:

Insights on speed…

Switch your app to Production mode for a while, see what happens :slight_smile:

-jim


#3

Hi Jim. Switched it to production. Pressed OK. Closed out my browser,
reopened it, went to my production, still a lag of about 3 seconds (the
same as before)
tried using webrick, same time.

When you go to your production on your localhost, do your pages pop up
instantly (like javascript, php, html speed) or is this little lag
normal?

Thanks

Jim C. wrote:

On Tue, Jun 06, 2006 at 03:20:34AM +0200, Dominic S. wrote:

I’m concerned when I convert to real produciton, going live, if there’s
going to be the same delay, plus additional bandwith traveling time.

There is a huge difference between development and production modes.
Development reloads everything for every request; production does not
:slight_smile:

I am running on a pentium 4…

I don’t know what happens in Instant Rails; but out of the standard
servers, WEBrick is slower than lighttpd; Apache on CGI is slower than
all of them :slight_smile:

Insights on speed…

Switch your app to Production mode for a while, see what happens :slight_smile:

-jim


#4

On Tue, 6 Jun 2006 02:37:01 +0000, Jon Gretar B. wrote:

I have noticed some slight lag on my server the first time a site is
loaded after restart. About 2-3 seconds. But thats just for the first
user for the first time. And it might just be my server.

The first time it needs to load a lot of stuff. The most important
thing are that successive requests perform well.


#5

you should not have many problems when deloying. Must be something
related to Instant Rails.

I have noticed some slight lag on my server the first time a site is
loaded after restart. About 2-3 seconds. But thats just for the first
user for the first time. And it might just be my server.

On 6/6/06, Dominic S. removed_email_address@domain.invalid wrote:

I am running on a pentium 4…


Posted via http://www.ruby-forum.com/.


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


#6

On 6/6/06, Dominic S. removed_email_address@domain.invalid wrote:

Hi Jim. Switched it to production. Pressed OK. Closed out my browser,
reopened it, went to my production, still a lag of about 3 seconds (the
same as before)
tried using webrick, same time.

DNS? Maby your browser is trying to lookup localhost but then gives up
after 3 secs.

regards
Claus


#7

Rails applications will run much slower on Windows. It’s an
unfortunate reality. Like any other platform, you should take
appropriate steps to measure performance.

On an average Windows server using one SGCI process, you can expect to
serve about 5 to 7 requests per second, and each user will proably see
1 to 3 seconds response time. You can help this along by ensuring
that you are making use of caching and ensuring that your database
interaction is as optimized as possible (eager loading is key).

5 requests a day will allow you to serve about 50,000 users in a 24
hour period. However, you should be concerned with how long users have
to wait. If you don’t have enough dispatchers, then your users can end
up waiting around until the server gets to them.

If you need rock-solid performance and speed, you really need to
consider moving to lighttpd+mongrel on Linux.

I have outlines some strategies for deployment on Windows that I hope
you will find helpful. Any of these strategies should provide you with
a solid application platform on Windows that will work for
applications with small to medium loads.

http://www.napcs.com/howto/rails/deploy/


#8

Dominic S. wrote:

Hi.

I’ve installed Instant Rails, and when testing my rails apps, I’m
noticing the load time is quite noticable.

I’m concerned when I convert to real produciton, going live, if there’s
going to be the same delay, plus additional bandwith traveling time.

I am running on a pentium 4…

Insights on speed…

Thanks

Dominic S.

Don’t worry too much about it. I develop with
Windows+Webrick+DevelopmentMode and its quite slow. But when I deploy
the app the Linux+Lighttpd+ProductionMode it’s wicked fast.


#9

2006/6/6, Dominic S. removed_email_address@domain.invalid:

Hi Jim. Switched it to production. Pressed OK. Closed out my browser,
reopened it, went to my production, still a lag of about 3 seconds (the
same as before) tried using webrick, same time.

I’ve had performance like that for Apache CGI, but on WebRick I have
no lag that bad, on Win XP.

When you are running in webrick, you can see the requests printed out
to the command window. With the three second lag, do you see the
request show up, then wait three seconds for your page to come up in
the browser, or do you wait three seconds and then see the request in
the webrick window?

Douglas


#10

Phil:

It is most definitely the Ruby interpreter. In fact, I actually find
that 1.8.2-15 works better than 1.8.4 on my systems.

Some folks who manage to get Ruby running via Cygwin have seen better
performance. I’m not to the point where I want to go that route
because I can easily hop to Linux for deployment.


#11

Brian H. wrote:

Rails applications will run much slower on Windows. It’s an
unfortunate reality. Like any other platform, you should take
appropriate steps to measure performance.

On an average Windows server using one SGCI process, you can expect to
serve about 5 to 7 requests per second, and each user will proably see
1 to 3 seconds response time.

Thanks for the insights Brian. Any luck/attempts to locate the
performance bottlenecks on Windows?
I’ve been wondering if it’s the Ruby interpreter itself. I run dual boot
Win/Linux and notice that everything ruby seems to run faster under
linux (e.g. my tests run 5-10x faster).

phil


#12

On 6/6/06, Alex W. removed_email_address@domain.invalid wrote:

I am running on a pentium 4…

Insights on speed…

Thanks

Dominic S.

Don’t worry too much about it. I develop with
Windows+Webrick+DevelopmentMode and its quite slow. But when I deploy
the app the Linux+Lighttpd+ProductionMode it’s wicked fast.

Even so, it’d be nice to know what’s going on, because this is
definitely an
anomoly. I’ve seen scatterred reports of this kind of slowdown, but the
majority of Instant Rails users do not seem to have this problem.

I’d suggest posting this to the Instant Rails mailing list:

http://rubyforge.org/mail/?group_id=904

Curt