ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Requests per second1Seconds to reset at start350Requests remaining at start200Seconds for request0.65
Requests sent before reset
2
Current implementation
(min(prev_remaining - cur_remaining, 1) * seconds_to_reset) / cur_remaining
Proposed implementation
max(min((seconds_to_rest - cur_remaining) / 2, 10), 0)
Old187
3
TimestampSeconds to resetRequests remainingEstimated clientsSleep timeTotal timeTimestampSeconds to resetRequests remainingSleep timeTotal timeNew200
4
035020011.752.403502001010.65
5
2.4347.619911.7467336682.39673366810.65339.351991010.65
6
4.796733668345.203266319811.743450842.3934508421.3328.71981010.65
7
7.190184508342.809815519711.7401513482.39015134831.95318.051971010.65
8
9.580335856340.419664119611.7368350212.38683502142.6307.41961010.65
9
11.96717088338.032829119511.7335016882.38350168853.25296.751951010.65
10
14.35067257335.649327419411.7301511722.38015117263.9286.11941010.65
11
16.73082374333.269176319311.7267832972.37678329774.55275.451931010.65
12
19.10760703330.89239319211.723397882.3733978885.2264.81921010.65
13
21.48100491328.518995119111.7199947392.36999473995.85254.151911010.65
14
23.85099965326.149000319011.7165736862.366573686106.5243.51901010.65
15
26.21757334323.782426718911.7131345332.363134533117.15232.851891010.65
16
28.58070787321.419292118811.7096770862.359677086127.8222.21881010.65
17
30.94038496319.05961518711.706201152.35620115138.45211.551871010.65
18
33.29658611316.703413918611.7027065262.352706526149.1200.91867.458.1
19
35.64929263314.350707418511.6991930132.349193013157.2192.81853.94.55
20
37.99848565312.001514418411.6956604042.345660404161.75188.251842.1252.775
21
40.34414605309.655853918311.6921084922.342108492164.525185.4751831.23751.8875
22
42.68625454307.313745518211.6885370632.338537063166.4125183.58751820.793751.44375
23
45.0247916304.975208418111.6849459032.334945903167.85625182.143751810.5718751.221875
24
47.35973751302.640262518011.6813347922.331334792169.078125180.9218751800.46093751.1109375
25
49.6910723300.308927717911.6777035072.327703507170.1890625179.81093751790.405468751.05546875
26
52.01877581297.981224217811.6740518212.324051821171.2445313178.75546881780.3777343751.027734375
27
54.34282763295.657172417711.6703795052.320379505172.2722656177.72773441770.36386718751.013867188
28
56.66320713293.336792917611.6666863232.316686323173.2861328176.71386721760.35693359381.006933594
29
58.97989346291.020106517511.6629720372.312972037174.2930664175.70693361750.35346679691.003466797
30
61.29286549288.707134517411.6592364052.309236405175.2965332174.70346681740.35173339841.001733398
31
63.6021019286.397898117311.655479182.30547918176.2982666173.70173341730.35086669921.000866699
32
65.90758108284.092418917211.651700112.30170011177.2991333172.70086671720.35043334961.00043335
33
68.20928119281.790718817111.647898942.29789894178.2995667171.70043331710.35021667481.000216675
34
70.50718013279.492819917011.6440754112.294075411179.2997833170.70021671700.35010833741.000108337
35
72.80125554277.198744516911.6402292572.290229257180.2998917169.70010831690.35005416871.000054169
36
75.0914848274.908515216811.636360212.28636021181.2999458168.70005421680.35002708441.000027084
37
77.37784501272.62215516711.6324679942.282467994182.2999729167.70002711670.35001354221.000013542
38
79.660313270.33968716611.6285523312.278552331183.2999865166.70001351660.35000677111.000006771
39
81.93886533268.061134716511.6246129372.274612937184.2999932165.70000681650.35000338551.000003386
40
84.21347827265.786521716411.6206495232.270649523185.2999966164.70000341640.35000169281.000001693
41
86.48412779263.515872216311.6166617932.266661793186.2999983163.70000171630.35000084641.000000846
42
88.75078958261.249210416211.6126494472.262649447187.2999992162.70000081620.35000042321.000000423
43
91.01343903258.98656116111.608612182.25861218188.2999996161.70000041610.35000021161.000000212
44
93.27205121256.727948816011.604549682.25454968189.2999998160.70000021600.35000010581.000000106
45
95.52660089254.473399115911.600461632.25046163190.2999999159.70000011590.35000005291.000000053
46
97.77706252252.222937515811.5963477062.246347706191.2999999158.70000011580.35000002641.000000026
47
100.0234102249.976589815711.5922075782.242207578192.3157.71570.35000001321.000000013
48
102.2656178247.734382215611.5880409122.238040912193.3156.71560.35000000661.000000007
49
104.5036587245.496341315511.5838473632.233847363194.3155.71550.35000000331.000000003
50
106.7375061243.262493915411.5796265842.229626584195.3154.71540.35000000171.000000002
51
108.9671327241.032867315311.5753782182.225378218196.3153.71530.35000000081.000000001
52
111.1925109238.807489115211.5711019022.221101902197.3152.71520.35000000041
53
113.4136128236.586387215111.5667972662.216797266198.3151.71510.35000000021
54
115.63041234.3695915011.5624639332.212463933199.3150.71500.35000000011
55
117.842874232.15712614911.5581015172.208101517200.3149.71490.35000000011
56
120.0509755229.949024514811.5537096252.203709625201.3148.71480.351
57
122.2546851227.745314914711.5492878562.199287856202.3147.71470.351
58
124.453973225.54602714611.5448358022.194835802203.3146.71460.351
59
126.6488088223.351191214511.5403530432.190353043204.3145.71450.351
60
128.8391618221.160838214411.5358391542.185839154205.3144.71440.351
61
131.025001218.97499914311.5312936992.181293699206.3143.71430.351
62
133.2062947216.793705314211.5267162352.176716235207.3142.71420.351
63
135.3830109214.616989114111.5221063062.172106306208.3141.71410.351
64
137.5551172212.444882814011.5174634482.167463448209.3140.71400.351
65
139.7225807210.277419313911.5127871892.162787189210.3139.71390.351
66
141.8853679208.114632113811.5080770452.158077045211.3138.71380.351
67
144.0434449205.956555113711.5033325192.153332519212.3137.71370.351
68
146.1967774203.803222613611.4985531072.148553107213.3136.71360.351
69
148.3453305201.654669513511.4937382922.143738292214.3135.71350.351
70
150.4890688199.510931213411.4888875462.138887546215.3134.71340.351
71
152.6279564197.372043613311.4840003282.134000328216.3133.71330.351
72
154.7619567195.238043313211.4790760862.129076086217.3132.71320.351
73
156.8910328193.108967213111.4741142542.124114254218.3131.71310.351
74
159.015147190.98485313011.4691142542.119114254219.3130.71300.351
75
161.1342613188.865738712911.4640754942.114075494220.3129.71290.351
76
163.2483368186.751663212811.4589973692.108997369221.3128.71280.351
77
165.3573341184.642665912711.4538792592.103879259222.3127.71270.351
78
167.4612134182.538786612611.4487205292.098720529223.3126.71260.351
79
169.5599339180.440066112511.4435205292.093520529224.3125.71250.351
80
171.6534545178.346545512411.4382785932.088278593225.3124.71240.351
81
173.7417331176.258266912311.432994042.08299404226.3123.71230.351
82
175.8247271174.175272912211.4276661712.077666171227.3122.71220.351
83
177.9023933172.097606712111.4222942712.072294271228.3121.71210.351
84
179.9746875170.025312512011.4168776042.066877604229.3120.71200.351
85
182.0415651167.958434911911.4114154192.061415419230.3119.71190.351
86
184.1029806165.897019411811.4059069442.055906944231.3118.71180.351
87
186.1588875163.841112511711.4003513892.050351389232.3117.71170.351
88
188.2092389161.790761111611.3947479412.044747941233.3116.71160.351
89
190.2539868159.746013211511.3890957672.039095767234.3115.71150.351
90
192.2930826157.706917411411.3833940122.033394012235.3114.71140.351
91
194.3264766155.673523411311.37764182.0276418236.3113.71130.351
92
196.3541184153.645881611211.3718382282.021838228237.3112.71120.351
93
198.3759566151.624043411111.3659823732.015982373238.3111.71110.351
94
200.391939149.60806111011.3600732822.010073282239.3110.71100.351
95
202.4020123147.597987710911.3541099792.004109979240.3109.71090.351
96
204.4061223145.593877710811.348091461.99809146241.3108.71080.351
97
206.4042137143.595786310711.3420166941.992016694242.3107.71070.351
98
208.3962304141.603769610611.3358846191.985884619243.3106.71060.351
99
210.382115139.61788510511.3296941421.979694142244.3105.71050.351
100
212.3618092137.638190810411.3234441421.973444142245.3104.71040.351