Skip to content

Comparison of loading speed of different versions of http service using golang.

License

Notifications You must be signed in to change notification settings

Choubeihai/http-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-share

使用Golang构建http/1.0,http/1.1和http/2.0服务,比较客户端页面的加载速度,页面由1个html文件、1个js文件和625张图片构成。

开启http服务

需要注意的是:http服务不要和客户端处于同一局域网内,否则难以看出其差别。

开启服务的方法:进入指定的目录,例如http/1.0目录,然后执行go run main.go即可。监听端口可以任意更改。

附加

我在知乎和公众号上分享了一篇文章——《HTTP版本差异和底层TCP细节》,如有兴趣可以阅读此文章。

知乎文章:HTTP版本差异和底层TCP细节

公众号文章:HTTP版本差异和底层TCP细节

知乎账户:https://www.zhihu.com/people/choubeihai

公众号账户:周北海

About

Comparison of loading speed of different versions of http service using golang.

Resources

License

Stars

Watchers

Forks

Packages