patch for total resp time
Status: Alpha
Brought to you by:
coroberti
|
From: Pranav D. <pra...@gm...> - 2010-05-12 21:21:49
|
Hello,
I wanted to get the total resp times of the object individually, since we
have large objects in the test cases for which the first-byte response time
does not give the whole picture of the performance.
I have attached a patch which does that, but I am not sure if I used the
right place (load_next_step) to update the stats, so I would appreciate if
you could review it. I can add the docs for it. Maybe someone else might be
able to use it.
Basically, it update the stat per url in load_next_step using the:
curl_easy_getinfo (cctx->handle, CURLINFO_TOTAL_TIME, &resp_time);
and update the ops log. So someone can parse the ops file to see how a
particular URL performed over a period of time, or plot the overall
performance of all the objects in a webpage/site, which is indicated by the
last operational section in ops.
It generates the following output in *.ops
Operations: Success Failed Timed out
Avg Resp. Time(secs)
URL0: 1 8 0 0 0
0 0.010 0.012
URL1: 1 8 0 0 0
0 0.009 0.007
URL2: 1 8 0 0 0
0 0.007 0.007
URL3: 1 7 0 0 0
0 8.828 8.882
Operations: Success Failed Timed out
Avg Resp. Time(secs)
URL0: 2 10 0 0 0
0 0.012 0.012
URL1: 2 10 0 0 0
0 0.007 0.007
URL2: 2 10 0 0 0
0 0.007 0.007
URL3: 1 8 0 0 0
0 8.903 8.885
and a log entry in *.log, which I don't think is necessary, but I used it to
validate the results so kept it in.
23869 1 3 1 !! END resptime=8.835
25044 1 3 2 !! END resptime=8.935
25892 2 0 1 !! END resptime=0.012
Thanks
-- Pranav
|