Hmm, I'm a little confused about where I sit in this thread as it's grown a 
life of it's own!  :)  But I'm glad I get to read through the whole 
conversation.  Lots of insight.

OK well my hello world is just a piece of the Instant Gratification chapter 
at the start of Agile Web Dev.  It's a single controller named "Say" with 
one action title "hello" and one rhtml template that has a little html and 
one call to Time.now.  Then I use htterf with the params I typed in the 
original post.

My mySQL is sitting over on a different machine (Dell 2950, dual dual core 
Xdeon with 16gb ram, CentOS 4.4 on a SCSI SAS mirror and the MySQL db's 
living on a local Raid 5 SCSI SAS set.  So no local DB action.  These will 
all be connected to 1GB switches.

So, if I'm benchmarking low are there any clues as to where I could begin 
looking?  Also, I realize that Nginx is supposed to serve up the static 
content which is really fast.  So does that mean that rhtml pages with ruby 
code, html and images will get partially served by mongrels and Nginx or is 
it that once we're in an rhml template that it's 100% mongrels?

Hmm, a bit at a loss here.  I'll benchmark my static html again just to be 
sure but I'm pretty certain i scored low there too according to your numbers 
(~4000 req/secs).

Raul


----- Original Message ----- 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "Deploying Rails" <rubyonrails-deployment@googlegroups.com>
Sent: Friday, March 09, 2007 11:16 PM
Subject: [Rails-deploy] Re: Decent banchmark results?


>
> On Mar 9, 10:25 pm, "Alexey Verkhovsky" <[EMAIL PROTECTED]>
> wrote:
>
>> On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> > What's the point of a test that has so little basis in real world
>> > usage?
>>
>> Are we talking about "hello world", or real world? :)
>
> :-)
>
> Good point, and a fair statement.
>
> "hello world" isn't real world, that's true, but it isn't quite a
> fairy tale either, which
> is a little closer to what I'd call a sessionless "hello world."
>
>> Without a session creation, you might just as well have served a
>>
>> > static HTML page, which would have returned higher numbers yet. :-)
>>
>> True. And that was exactly what I wanted to establish with hello world 
>> test
>> - that it's not much slower than serving static files.
>
> Well, that's a good testing and interesting in and of itself, but it's
> not really fair
> to post the results of that test as an example of how his results were
> a bit lower
> than expected.
>
> And, not much slower than serving static files? You should be getting
> closer to
> 4 kreq/sec for static files, perhaps even faster on a local system.
>
> Here's a static test of a single Engine Yard slice, from another
> slice, over
> gigabit ethernet.
>
> ey00-s00070 ~ # ab2 -n 5000 -c 4 http://www.engineyard.com/404.html
>
> This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $>
> apache-2.0
> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
> Copyright 2006 The Apache Software Foundation, http://www.apache.org/
>
> Benchmarking 10.0.128.71 (be patient)
> Completed 500 requests
> Completed 1000 requests
> Completed 1500 requests
> Completed 2000 requests
> Completed 2500 requests
> Completed 3000 requests
> Completed 3500 requests
> Completed 4000 requests
> Completed 4500 requests
> Finished 5000 requests
>
>
> Server Software:        nginx/0.4.13
> Server Hostname:        10.0.128.71
> Server Port:            80
>
> Document Path:          /404.html
> Document Length:        619 bytes
>
> Concurrency Level:      4
> Time taken for tests:   1.179527 seconds
> Complete requests:      5000
> Failed requests:        0
> Write errors:           0
> Total transferred:      4150000 bytes
> HTML transferred:       3095000 bytes
> Requests per second:    4238.99 [#/sec] (mean)
> Time per request:       0.944 [ms] (mean)
> Time per request:       0.236 [ms] (mean, across all concurrent
> requests)
> Transfer rate:          3435.28 [Kbytes/sec] received
>
> Connection Times (ms)
>              min  mean[+/-sd] median   max
> Connect:        0    0   0.1      0       3
> Processing:     0    0   1.0      0      32
> Waiting:        0    0   1.0      0      31
> Total:          0    0   1.1      0      32
>
> Percentage of the requests served within a certain time (ms)
>  50%      0
>  66%      0
>  75%      0
>  80%      0
>  90%      1
>  95%      1
>  98%      1
>  99%      1
> 100%     32 (longest request)
>
> --
> -- Tom Mornini
>
>
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to