Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Using LWP: is there a way to get the server response time?

by Tomte (Priest)
on May 11, 2007 at 11:26 UTC ( #614875=note: print w/ replies, xml ) Need Help??


in reply to Using LWP: is there a way to get the server response time?

If raw performance (time from "request-came-in" to "about-to-start-sending") is what you want to measure, in my humble opinion you should measure that on the server itself, not the client, otherwise the network will allways interfere with your measurements - in our current projects we send an X-header holding the processing time: X-Time: 0.017s

regards,
tomte


An intellectual is someone whose mind watches itself.
-- Albert Camus


Comment on Re: Using LWP: is there a way to get the server response time?
Download Code
Re^2: Using LWP: is there a way to get the server response time?
by Anonymous Monk on May 11, 2007 at 13:34 UTC
    Mmmh. So is a http response alsways a combination of header+response and I have no handle to get into the data-chunks (and their timing) received by LWP::UserAgent?

    I am not able to get on the server side. So my only chance is to calculate: ((overall-response-time / transferred-bytes) / my-network-throughput-capacity) or something like that to get a hint of the time used to prepare the response on the server side?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://614875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-09-22 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls