On Thu, Mar 26, 2009 at 2:30 AM, Andrei Erdoss <
erd...@gmail.com> wrote:
> Thank you for your reply. I did some performance testing using a plugin that
> uses Desert and Passenger. The results were pretty bad.
>
> This is done without preloading. Can you give me an example on how I would
> preload this plugin into environment.rb? Do I have to include all classes
> and modules?
That would probably be a good idea.
Desert causes more file searching and loading because it loads all
matches, rather than the first match, when you use require or the
constant autoloading. On Passenger, there would be performance issues
if each forked process needed to load all of the files.
> 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
cauta.ro (be patient)
>
>
> Server Software: Apache/2.2.8
> Server Hostname:
cauta.ro
> Server Port: 80
>
> Document Path: /home/index
> Document Length: 8465 bytes
>
> Concurrency Level: 10
> Time taken for tests: 526.253196 seconds
> Complete requests: 1000
> Failed requests: 0
> Write errors: 0
> Total transferred: 9002291 bytes
> HTML transferred: 8465000 bytes
> Requests per second: 1.90 [#/sec] (mean)
> Time per request: 5262.532 [ms] (mean)
> Time per request: 526.253 [ms] (mean, across all concurrent requests)
> Transfer rate: 16.70 [Kbytes/sec] received
>
> Connection Times (ms)
> min mean[+/-sd] median max
> Connect: 146 151 5.0 151 211
> Processing: 3156 5092 2973.3 4323 36119
> Waiting: 3004 4936 2973.4 4171 35967
> Total: 3308 5243 2973.7 4472 36273
>
> Percentage of the requests served within a certain time (ms)
> 50% 4472
> 66% 4931
> 75% 5415
> 80% 5721
> 90% 6703
> 95% 8345
> 98% 10321
> 99% 25562
> 100% 36273 (longest request)
>
>