Re: Performance evaluation of HTTPS library

2010-10-14 Thread Antoine Pitrou
On Thu, 14 Oct 2010 05:06:30 -0700 (PDT) Ashish wrote: > > One more question: If I run the tool from multicore machine, will > python3.1 or 3.2 be able to actually use multicore? or it will be > running only on one core? Only partly. Pure Python code is serialized (by the Global Interpreter Lock

Re: Performance evaluation of HTTPS library

2010-10-14 Thread Ashish
On Oct 13, 6:12 pm, Antoine Pitrou wrote: > On Wed, 13 Oct 2010 05:27:29 -0700 (PDT)Ashish wrote: > > > Well, CBSocket is socket implementation that calls my callback on > > data. > > Both my classes AsyncHTTPSConnection and AsyncHTTPConnection use it > > and use it the same way ( self.sock = CBS

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Antoine Pitrou
On Wed, 13 Oct 2010 05:27:29 -0700 (PDT) Ashish wrote: > > Well, CBSocket is socket implementation that calls my callback on > data. > Both my classes AsyncHTTPSConnection and AsyncHTTPConnection use it > and use it the same way ( self.sock = CBSocket(sock2) ). > The implemetation of AsyncHTTPCon

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Ashish
On Oct 13, 3:19 pm, Antoine Pitrou wrote: > On Wed, 13 Oct 2010 02:12:21 -0700 (PDT) > > Ashish wrote: > > > > > Is the client machine at 100% CPU when you do that? > > > > With HTTP, I see client CPU at appx. 97%. However with HTTPS, it stays > > > at 53-55%. > > And is the server at 100% CPU th

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Ashish
On Oct 13, 2:36 pm, Stefan Behnel wrote: > Ashish Vyas, 12.10.2010 14:40: > > > When I send request using HTTP, I am able to reach 1 transaction (request > > sent, > > response rcvd and validated.) per second from 20 parallel connections > > easily. > > Average response time shown is about 0.15

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Antoine Pitrou
On Wed, 13 Oct 2010 02:12:21 -0700 (PDT) Ashish wrote: > > > > > Is the client machine at 100% CPU when you do that? > > > > With HTTP, I see client CPU at appx. 97%. However with HTTPS, it stays > > at 53-55%. And is the server at 100% CPU then? If the client is not at 100% CPU, it shouldn't be

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Stefan Behnel
Ashish Vyas, 12.10.2010 14:40: When I send request using HTTP, I am able to reach 1 transaction (request sent, response rcvd and validated.) per second from 20 parallel connections easily. Average response time shown is about 0.15 seconds. However, when I send request using HTTPS, I am seeing tha

Re: Performance evaluation of HTTPS library

2010-10-13 Thread Ashish
On Oct 13, 11:11 am, Ashish wrote: > On Oct 12, 6:33 pm, Antoine Pitrou wrote:> On Tue, 12 > Oct 2010 05:40:43 -0700 (PDT) > > > Ashish Vyas wrote: > > > Another observation that I have made is with 10 parallel HTTPS connection > > > each > > > trying 1 transaction per second from 2 different

Re: Performance evaluation of HTTPS library

2010-10-12 Thread Ashish
On Oct 12, 6:33 pm, Antoine Pitrou wrote: > On Tue, 12 Oct 2010 05:40:43 -0700 (PDT) > > Ashish Vyas wrote: > > Another observation that I have made is with 10 parallel HTTPS connection > > each > > trying 1 transaction per second from 2 different machines (effectively same > > load > > on serv

Re: Performance evaluation of HTTPS library

2010-10-12 Thread Antoine Pitrou
On Tue, 12 Oct 2010 05:40:43 -0700 (PDT) Ashish Vyas wrote: > > I have made a tool for load testing of my company's web-server product. The > tool > is written using Python 3.1. > [...] > > So I feel HTTPS is blocking my test if I want to achieve higher TPS > (transactions per second.) than

Re: Performance evaluation of HTTPS library

2010-10-12 Thread Antoine Pitrou
On Tue, 12 Oct 2010 05:40:43 -0700 (PDT) Ashish Vyas wrote: > Another observation that I have made is with 10 parallel HTTPS connection > each > trying 1 transaction per second from 2 different machines (effectively same > load > on server), the response time is again reducing to .17 secs. > H

Performance evaluation of HTTPS library

2010-10-12 Thread Ashish Vyas
Hi All I have made a tool for load testing of my company's web-server product. The tool is written using Python 3.1. The tool basically does a HTTP or HTTPS post, gets response and parses the response, does the response validation against expected response and maintains the stats of average