https://github.com/ziyi2/go-demo
https://github.com/ziyi2/go-demo
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ziyi2/go-demo
- Owner: ziyi2
- Created: 2016-10-21T06:51:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T06:22:22.000Z (over 9 years ago)
- Last Synced: 2025-03-23T20:34:26.533Z (over 1 year ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-demo
## 环境
- [IDEA15搭建Go开发环境](http://studygolang.com/articles/6251)
## Go Web框架
- [go有哪些快速开发的web框架?](https://www.zhihu.com/question/27370112)文章告诉我们目前在Github上比较火的web框架有[martini](https://github.com/go-martini/martini),[beego](https://github.com/astaxie/beego),[revel](https://github.com/revel/revel),[gin](https://github.com/gin-gonic/gin)等.
- [超全的Go Http路由框架性能比较](http://colobu.com/2016/03/23/Go-HTTP-request-router-and-web-framework-benchmark/)在路由处理性能方面的测试报告说明[gin](https://github.com/gin-gonic/gin)和[iris](https://github.com/kataras/iris)在方面性能非常好,[beego](https://github.com/astaxie/beego)相对于[revel](https://github.com/revel/revel)和[martini](https://github.com/go-martini/martini)性能较好.
- [iris 真的是最快的Golang 路由框架吗?](http://colobu.com/2016/04/01/Is-iris-the-fastest-golang-router-library/)指出了[超全的Go Http路由框架性能比较](http://colobu.com/2016/03/23/Go-HTTP-request-router-and-web-framework-benchmark/)中测试方法的不足已经性能测试数据的一些不准确性.
- [谁是最快的Go Web框架](http://colobu.com/2016/04/06/the-fastest-golang-web-framework/)说明[fasthttp](https://github.com/valyala/fasthttp)的性能不错,并且仍然说明基于[fasthttp](https://github.com/valyala/fasthttp)的[iris](https://github.com/kataras/iris)性能不错.
- 如果想要知道更多关于web frameworks的性能对比请查看(Web Framework Benchmarks)[https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=query]
### 总结
[gin](https://github.com/gin-gonic/gin)和[iris](https://github.com/kataras/iris)的性能都非常好,但是[iris](https://github.com/kataras/iris)是基于[fasthttp](https://github.com/valyala/fasthttp)的,迁移项目比较麻烦,[beego](https://github.com/astaxie/beego)和[revel](https://github.com/revel/revel)在国内比较普及.