http://qs321.pair.com?node_id=614875


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

Replies are listed 'Best First'.
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?