[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: httpapi speed



Notice if I request the page for example in a browser and measure the response speed in FIddler2 I get the following statistic:

Request Count:   1
Bytes Sent:      68		(headers:68; body:0)
Bytes Received:  248		(headers:244; body:4)

ACTUAL PERFORMANCE
--------------
ClientConnected:	12:17:39.615
ClientBeginRequest:	12:17:39.615
GotRequestHeaders:	12:17:39.615
ClientDoneRequest:	12:17:39.615
Determine Gateway:	0ms
DNS Lookup: 		0ms
TCP/IP Connect:	0ms
HTTPS Handshake:	0ms
ServerConnected:	12:17:39.617
FiddlerBeginRequest:	12:17:39.617
ServerGotRequest:	12:17:39.617
ServerBeginResponse:	12:17:39.618
GotResponseHeaders:	12:17:39.618
ServerDoneResponse:	12:17:39.618
ClientBeginResponse:	12:17:39.618
ClientDoneResponse:	12:17:39.618

	Overall Elapsed:	0:00:00.002

RESPONSE BYTES (by Content-Type)
--------------
~headers~: 244
text/html: 4

The actual data returned is this:

HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Fri, 30 May 2014 07:45:28 GMT
Accept-Ranges: bytes
ETag: "a895b20db7bcf1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 30 May 2014 10:17:39 GMT
Content-Length: 4

pong




-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sawatzki, Peter
Sent: Friday, May 30, 2014 12:01 PM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: httpapi speed

Scott,

I implemented the changes you suggested in my test program but unfortunatly the performance didn't impoved at all. 

To further eliminate any other issues I may have I used a toString procedure that does nothing (just returns the length) and I'm reuqsting a simple static htm file that has only "pong" as a contents (4 bytes). So I'm simply calling "http://192.168.101.5/ping.htm";.

Here is a log file of the requests, it seems that most of the time is spent receiving the data from the web server ("recvresp() entered":


HTTPAPI Ver 1.25beta2 released 2012-03-06
OS/400 Ver V6R1M0


2014-05-30-11.48.35.494000 http_persist_open(): entered
2014-05-30-11.48.35.494000 http_long_ParseURL(): entered
2014-05-30-11.48.35.494000 DNS resolver retrans: 2
2014-05-30-11.48.35.494000 DNS resolver retry  : 2
2014-05-30-11.48.35.494000 DNS resolver options: x'00000136'
2014-05-30-11.48.35.494000 DNS default domain: WESTFALIA.NET
2014-05-30-11.48.35.494000 DNS server found: 192.168.101.2
2014-05-30-11.48.35.494000 DNS server found: 192.168.101.14
2014-05-30-11.48.35.495000 http_persist_get(): entered
2014-05-30-11.48.35.495000 http_persist_req(GET) entered.
2014-05-30-11.48.35.495000 http_long_ParseURL(): entered
2014-05-30-11.48.35.495000 do_oper(GET): entered
2014-05-30-11.48.35.495000 There are 0 cookies in the cache GET /ping.htm HTTP/1.1
Host: 192.168.101.5
User-Agent: http-api/1.24


2014-05-30-11.48.35.495000 recvresp(): entered
HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Fri, 30 May 2014 07:45:28 GMT
Accept-Ranges: bytes
ETag: "a895b20db7bcf1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 30 May 2014 09:48:35 GMT
Content-Length: 4


2014-05-30-11.48.35.696000 SetError() #13: HTTP/1.1 200 OK
2014-05-30-11.48.35.696000 recvresp(): end with 200
2014-05-30-11.48.35.696000 recvdoc parms: identity 4
2014-05-30-11.48.35.696000 header_load_cookies() entered
2014-05-30-11.48.35.696000 recvdoc(): entered
2014-05-30-11.48.35.696000 SetError() #0:
pong
2014-05-30-11.48.35.696000 http_persist_get(): entered
2014-05-30-11.48.35.696000 http_persist_req(GET) entered.
2014-05-30-11.48.35.696000 http_long_ParseURL(): entered
2014-05-30-11.48.35.696000 do_oper(GET): entered
2014-05-30-11.48.35.696000 There are 0 cookies in the cache GET /ping.htm HTTP/1.1
Host: 192.168.101.5
User-Agent: http-api/1.24


2014-05-30-11.48.35.696000 recvresp(): entered
HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Fri, 30 May 2014 07:45:28 GMT
Accept-Ranges: bytes
ETag: "a895b20db7bcf1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 30 May 2014 09:48:35 GMT
Content-Length: 4


2014-05-30-11.48.35.912000 SetError() #13: HTTP/1.1 200 OK
2014-05-30-11.48.35.912000 recvresp(): end with 200
2014-05-30-11.48.35.912000 recvdoc parms: identity 4
2014-05-30-11.48.35.912000 header_load_cookies() entered
2014-05-30-11.48.35.912000 recvdoc(): entered
2014-05-30-11.48.35.912000 SetError() #0:
pong
2014-05-30-11.48.35.912000 http_persist_get(): entered
2014-05-30-11.48.35.912000 http_persist_req(GET) entered.
2014-05-30-11.48.35.912000 http_long_ParseURL(): entered
2014-05-30-11.48.35.912000 do_oper(GET): entered
2014-05-30-11.48.35.912000 There are 0 cookies in the cache GET /ping.htm HTTP/1.1
Host: 192.168.101.5
User-Agent: http-api/1.24


2014-05-30-11.48.35.912000 recvresp(): entered
HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Fri, 30 May 2014 07:45:28 GMT
Accept-Ranges: bytes
ETag: "a895b20db7bcf1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 30 May 2014 09:48:35 GMT
Content-Length: 4


2014-05-30-11.48.36.115000 SetError() #13: HTTP/1.1 200 OK
2014-05-30-11.48.36.115000 recvresp(): end with 200
2014-05-30-11.48.36.115000 recvdoc parms: identity 4
2014-05-30-11.48.36.115000 header_load_cookies() entered
2014-05-30-11.48.36.115000 recvdoc(): entered
2014-05-30-11.48.36.115000 SetError() #0:
pong
2014-05-30-11.48.36.115000 http_persist_get(): entered
2014-05-30-11.48.36.115000 http_persist_req(GET) entered.
2014-05-30-11.48.36.115000 http_long_ParseURL(): entered
2014-05-30-11.48.36.115000 do_oper(GET): entered
2014-05-30-11.48.36.115000 There are 0 cookies in the cache GET /ping.htm HTTP/1.1
Host: 192.168.101.5
User-Agent: http-api/1.24

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------