用 c++写的 Python http 请求模块,速度极快
資深大佬 : daimiaopeng 20
github 项目: https://github.com/daimiaopeng/fast_requests 项目是今天写的所以很简陋,暂且只支持 get 。
测试: 循环 get(“https://baidu.com”) 100 次
1.自己写的 4.2 秒
2.requests 10.5 秒
3.grequests 31.3 秒
大佬有話說 (2)
github 项目: https://github.com/daimiaopeng/fast_requests 项目是今天写的所以很简陋,暂且只支持 get 。
测试: 循环 get(“https://baidu.com”) 100 次
1.自己写的 4.2 秒
2.requests 10.5 秒
3.grequests 31.3 秒