> How to you measure the tranfer time exactly? I'd need to reproduce your 
> measurements to drive this forward.

I use steady clock for that (provided by std::chrono::steady_clock), and I take 
time points at transfer start and transfer end.
The (end - start) duration is my measured transfer time as client sees it.

But you can get very similar results if you measure transfer time using 
curl_easy_getinfo and CURLINFO_TOTAL_TIME_T.
I tried it, and the results are almost identical to my measurements with steady 
clock.

Thanks,
Dmitry


-----Original Message-----
From: Stefan Eissing <[email protected]> 
Sent: Friday, November 21, 2025 12:25 AM
To: Dmitry Karpov <[email protected]>
Cc: libcurl development <[email protected]>
Subject: [EXTERNAL] Re: ratelimits revisited



> Am 20.11.2025 um 21:45 schrieb Dmitry Karpov <[email protected]>:
> 
>> 1. How/with what do you takes the measurements?
> 
> I have a set of download throttle tests, which is a part of our libcurl 
> readiness tests, which we use when we upgrade libcurl.
> The throttle test sets a rate limit via CURLOPT_MAX_RECV_SPEED_LARGE, 
> performs the transfer, and calculates the actual download speed (dividing the 
> download size by the measured transfer time).

How to you measure the tranfer time exactly? I'd need to reproduce your 
measurements to drive this forward.

Thanks,
Stefan
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to