parnurzeal / gorequest

GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
http://parnurzeal.github.io/gorequest/
MIT License
3.44k stars 414 forks source link

High CPU usage when keep using the #249

Open amsun10 opened 4 years ago

amsun10 commented 4 years ago

for i := 0; i < 10000; i++ { fmt.Println(i) //request.Clone().Get("https://www.baidu.com").End() gorequest.New().Get("https://www.baidu.com").End() }

it will soon achieve 95%+ CPU usage no matter clone or New(), any comments?

I am using github.com/parnurzeal/gorequest v0.2.16 and go 1.13