I asked a stupid question.

373.505 is the average time it takes to respond to a request but there
are 20 of them at the same time.
373/20 ~= 18ms per request.


On Jan 10, 3:33 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Was the app bytecode compiled?
> Is ab running on localhost or do the number include affects from
> latency and bandwith?
> I get smaller numbers running on my laptop.
>
> In your output (ab output). What is the difference between?
>
> Time per request:       373.505 [ms] (mean)
> Time per request:       18.675 [ms] (mean, across all concurrent
> requests)
>
> Massimo
>
> On Jan 10, 10:35 am, vvk <varunk.ap...@gmail.com> wrote:
>
> > I've benchmarked default welcome application also, posted WITH SSL
> > results above, these are the results:
>
> > **********WELCOME APP WITHOUT SSL*************
>
> > va...@varun-laptop:~$ ab -c 20 -n 
> > 500http://10.1.65.114/welcome/default/user/login
> > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/
> > Licensed to The Apache Software Foundation,http://www.apache.org/
>
> > Benchmarking 10.1.65.114 (be patient)
> > Completed 100 requests
> > Completed 200 requests
> > Completed 300 requests
> > Completed 400 requests
> > Completed 500 requests
> > Finished 500 requests
>
> > Server Software:        Apache/2.2.12
> > Server Hostname:        10.1.65.114
> > Server Port:            80
>
> > Document Path:          /welcome/default/user/login
> > Document Length:        7212 bytes
>
> > Concurrency Level:      20
> > Time taken for tests:   9.338 seconds
> > Complete requests:      500
> > Failed requests:        0
> > Write errors:           0
> > Total transferred:      3804726 bytes
> > HTML transferred:       3606000 bytes
> > Requests per second:    53.55 [#/sec] (mean)
> > Time per request:       373.505 [ms] (mean)
> > Time per request:       18.675 [ms] (mean, across all concurrent
> > requests)
> > Transfer rate:          397.91 [Kbytes/sec] received
>
> > Connection Times (ms)
> >               min  mean[+/-sd] median   max
> > Connect:        0    0   0.2      0       1
> > Processing:    23  369 119.0    367     784
> > Waiting:       21  364 118.3    359     776
> > Total:         24  369 119.0    367     784
>
> > Percentage of the requests served within a certain time (ms)
> >   50%    367
> >   66%    410
> >   75%    438
> >   80%    462
> >   90%    533
> >   95%    575
> >   98%    647
> >   99%    697
> >  100%    784 (longest request)
>
> > ****************WELCOME APP WITH SSL *************
>
> > va...@varun-laptop:~$ ab -c 20 -n 
> > 500https://10.1.65.114/welcome/default/user/login
> > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/
> > Licensed to The Apache Software Foundation,http://www.apache.org/
>
> > Benchmarking 10.1.65.114 (be patient)
> > Completed 100 requests
> > Completed 200 requests
> > Completed 300 requests
> > Completed 400 requests
> > Completed 500 requests
> > Finished 500 requests
>
> > Server Software:        Apache/2.2.12
> > Server Hostname:        10.1.65.114
> > Server Port:            443
> > SSL/TLS Protocol:       TLSv1/SSLv3,DHE-RSA-AES256-SHA,1024,256
>
> > Document Path:          /welcome/default/user/login
> > Document Length:        7212 bytes
>
> > Concurrency Level:      20
> > Time taken for tests:   15.443 seconds
> > Complete requests:      500
> > Failed requests:        0
> > Write errors:           0
> > Total transferred:      3815348 bytes
> > HTML transferred:       3613212 bytes
> > Requests per second:    32.38 [#/sec] (mean)
> > Time per request:       617.703 [ms] (mean)
> > Time per request:       30.885 [ms] (mean, across all concurrent
> > requests)
> > Transfer rate:          241.28 [Kbytes/sec] received
>
> > Connection Times (ms)
> >               min  mean[+/-sd] median   max
> > Connect:       66  334 112.5    336     663
> > Processing:    16  277 122.8    276     648
> > Waiting:       16  197 113.3    179     619
> > Total:         97  611 181.1    619    1202
>
> > Percentage of the requests served within a certain time (ms)
> >   50%    619
> >   66%    695
> >   75%    738
> >   80%    759
> >   90%    846
> >   95%    911
> >   98%    926
> >   99%   1070
> >  100%   1202 (longest request)
>
> > ---------------------
>
> > On Jan 10, 9:24 pm, vvk <varunk.ap...@gmail.com> wrote:
>
> > > Sir,
>
> > > These are numbers of my app. I've rebooted my Ubuntu this time, with
> > > no other program running, these are the results.
>
> > > Config: 2.16 GHZ Dual Core, 2GB RAM
>
> > > *************Without SSL***************
>
> > > va...@varun-laptop:~$ ab -c 20 -n 500http://10.1.65.114/init/default/login
> > > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/
> > > Licensed to The Apache Software Foundation,http://www.apache.org/
>
> > > Benchmarking 10.1.65.114 (be patient)
> > > Completed 100 requests
> > > Completed 200 requests
> > > Completed 300 requests
> > > Completed 400 requests
> > > Completed 500 requests
> > > Finished 500 requests
>
> > > Server Software:        Apache/2.2.12
> > > Server Hostname:        10.1.65.114
> > > Server Port:            80
>
> > > Document Path:          /init/default/login
> > > Document Length:        5595 bytes
>
> > > Concurrency Level:      20
> > > Time taken for tests:   15.632 seconds
> > > Complete requests:      500
> > > Failed requests:        0
> > > Write errors:           0
> > > Total transferred:      2994418 bytes
> > > HTML transferred:       2797500 bytes
> > > Requests per second:    31.99 [#/sec] (mean)
> > > Time per request:       625.284 [ms] (mean)
> > > Time per request:       31.264 [ms] (mean, across all concurrent
> > > requests)
> > > Transfer rate:          187.07 [Kbytes/sec] received
>
> > > Connection Times (ms)
> > >               min  mean[+/-sd] median   max
> > > Connect:        0    0   0.2      0       1
> > > Processing:    92  619 149.4    609    1288
> > > Waiting:       80  612 149.0    604    1270
> > > Total:         93  619 149.3    609    1288
>
> > > Percentage of the requests served within a certain time (ms)
> > >   50%    609
> > >   66%    675
> > >   75%    719
> > >   80%    748
> > >   90%    806
> > >   95%    864
> > >   98%    969
> > >   99%   1015
> > >  100%   1288 (longest request)
>
> > > ************** With SSL **********************
>
> > > va...@varun-laptop:~$ ab -c 20 -n 500https://10.1.65.114/welcome/default/
> > > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/
> > > Licensed to The Apache Software Foundation,http://www.apache.org/
>
> > > Benchmarking 10.1.65.114 (be patient)
> > > ^C
>
> > > Server Software:
> > > Server Hostname:        10.1.65.114
> > > Server Port:            443
>
> > > Document Path:          /welcome/default/
> > > Document Length:        0 bytes
>
> > > Concurrency Level:      20
> > > Time taken for tests:   0.213 seconds
> > > Complete requests:      0
> > > Failed requests:        0
> > > Write errors:           0
> > > Total transferred:      0 bytes
> > > HTML transferred:       0 bytes
> > > va...@varun-laptop:~$ ab -c 20 -n 
> > > 500https://10.1.65.114/init/default/login
> > > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/
> > > Licensed to The Apache Software Foundation,http://www.apache.org/
>
> > > Benchmarking 10.1.65.114 (be patient)
> > > Completed 100 requests
> > > Completed 200 requests
> > > Completed 300 requests
> > > Completed 400 requests
> > > Completed 500 requests
> > > Finished 500 requests
>
> > > Server Software:        Apache/2.2.12
> > > Server Hostname:        10.1.65.114
> > > Server Port:            443
> > > SSL/TLS Protocol:       TLSv1/SSLv3,DHE-RSA-AES256-SHA,1024,256
>
> > > Document Path:          /init/default/login
> > > Document Length:        5595 bytes
>
> > > Concurrency Level:      20
> > > Time taken for tests:   17.456 seconds
> > > Complete requests:      500
> > > Failed requests:        0
> > > Write errors:           0
> > > Total transferred:      3005532 bytes
> > > HTML transferred:       2803095 bytes
> > > Requests per second:    28.64 [#/sec] (mean)
> > > Time per request:       698.229 [ms] (mean)
> > > Time per request:       34.911 [ms] (mean, across all concurrent
> > > requests)
> > > Transfer rate:          168.14 [Kbytes/sec] received
>
> > > Connection Times (ms)
> > >               min  mean[+/-sd] median   max
> > > Connect:       37  253 118.5    257     719
> > > Processing:    53  436 191.9    397    1348
> > > Waiting:       49  397 188.9    366    1336
> > > Total:        237  690 232.6    683    1859
>
> > > Percentage of the requests served within a certain time (ms)
> > >   50%    683
> > >   66%    743
> > >   75%    771
> > >   80%    806
> > >   90%    924
> > >   95%   1173
> > >   98%   1381
> > >   99%   1547
> > >  100%   1859 (longest request)
>
> > > On Jan 10, 8:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > These number are high. What is in the app? Are you testing ssl? What
> > > > are the same numbers without ssl?
>
> > > > On Jan 10, 5:12 am, vvk <varunk.ap...@gmail.com> wrote:
>
> > > > > Thanks massimo sir,
>
> > > > > At first, I was getting mean response time of 200 ms per request (ab -
> > > > > n 500 -c 20)
> > > > > I did compile (link "compile" in admin page), mean time per request
> > > > > reduced to 61 ms.
> > > > > After that I did, migrate=False for all tables, mean time came down to
> > > > > 57.1 ms.
> > > > > I'll try caching today and post that results also.
>
> > > > > -----
>
> > > > > va...@varun-laptop:~$ ab -c 20 -n 
> > > > > 500https://localhost/lsilab/default/login
> > > > > This is ApacheBench, Version 2.3 <$Revision: 655654 $>
> > > > > Copyright 1996 Adam Twiss, Zeus Technology 
> > > > > Ltd,http://www.zeustech.net/
> > > > > Licensed to The Apache Software
>
> ...
>
> read more »
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to