- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for QPS (0.01 sec)
-
guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* calling thread wait for that time. * * The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted * request, and ensure that (1/QPS) seconds have elapsed since then. For example, for a rate of * QPS=5 (5 tokens per second), if we ensure that a request isn't granted earlier than 200ms after
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 19.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
for (double qps : qpsToTest) { // If warmupPermits = maxPermits - thresholdPermits then // warmupPeriod = (1 + coldFactor) * warmupPermits * stableInterval / 2 long warmupMillis = (long) ((1 + coldFactor) * warmupPermits / (2.0 * qps) * 1000.0); RateLimiter rateLimiter = RateLimiter.create(qps, warmupMillis, MILLISECONDS, coldFactor, stopwatch);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
for (double qps : qpsToTest) { // If warmupPermits = maxPermits - thresholdPermits then // warmupPeriod = (1 + coldFactor) * warmupPermits * stableInterval / 2 long warmupMillis = (long) ((1 + coldFactor) * warmupPermits / (2.0 * qps) * 1000.0); RateLimiter rateLimiter = RateLimiter.create(qps, warmupMillis, MILLISECONDS, coldFactor, stopwatch);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 21.9K bytes - Viewed (0)