Content-Length: 246835 | pFad | http://github.com/chentaihan/flowControl

29 GitHub - chentaihan/flowControl: 流量控制器
Skip to content

chentaihan/flowControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flowControl

流量控制器

滑动窗口实现流量控制

//qps = 1000/5 = 200
rw := NewRollWindow(5, 1000)
startTime := time.Now()
const count = 10000
for i := 0; i < count; i++ {
    rw.Wait()
}
useTime := time.Now().Sub(startTime)
fmt.Println(useTime)

About

流量控制器

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/chentaihan/flowControl

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy