Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: ratelimits revisited
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dmitry Karpov via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 21 Nov 2025 19:42:36 +0000
> 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 <stefan_at_eissing.org>
Sent: Friday, November 21, 2025 12:25 AM
To: Dmitry Karpov <dkarpov_at_roku.com>
Cc: libcurl development <curl-library_at_lists.haxx.se>
Subject: [EXTERNAL] Re: ratelimits revisited
> Am 20.11.2025 um 21:45 schrieb Dmitry Karpov <dkarpov_at_roku.com>:
>
>> 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
Date: Fri, 21 Nov 2025 19:42:36 +0000
> 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 <stefan_at_eissing.org>
Sent: Friday, November 21, 2025 12:25 AM
To: Dmitry Karpov <dkarpov_at_roku.com>
Cc: libcurl development <curl-library_at_lists.haxx.se>
Subject: [EXTERNAL] Re: ratelimits revisited
> Am 20.11.2025 um 21:45 schrieb Dmitry Karpov <dkarpov_at_roku.com>:
>
>> 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.htmlReceived on 2025-11-21