Go Web Framework Benchmark

Go Web 框架基准测试(目前包含 Echo 和 Gin 2种框架)。(Go Web framework benchmark)

  • 所有者: vishr/web-framework-benchmark
  • 平台: Linux, Mac, Windows
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Web 框架基准测试(Echo 和 Gin)

需求

  • dep

安装

go get github.com/vishr/web-framework-benchmark

运行基准测试

go test -bench=.

测试结果

1、vz 测试样例

1)测试环境:
  • OS 名称: Microsoft Windows 8.1
  • 系统类型: x64-based PC
  • 处理器: 安装了 1 个处理器。
    • [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3000 Mhz
  • 物理内存总量: 16,259 MB
2)测试结果:
λ go test -bench=.
goos: windows
goarch: amd64
pkg: github.com/vishr/web-framework-benchmark
BenchmarkEchoStatic-2              24026             49162 ns/op            1980 B/op        157 allocs/op
BenchmarkEchoGitHubAPI-2           16332             73975 ns/op            2692 B/op        203 allocs/op
BenchmarkEchoGplusAPI-2           292406              4108 ns/op             163 B/op         13 allocs/op
BenchmarkEchoParseAPI-2           173745              7540 ns/op             407 B/op         26 allocs/op
BenchmarkGinStatic-2               20808             58206 ns/op            8371 B/op        157 allocs/op
BenchmarkGinGitHubAPI-2            14528             81869 ns/op           10942 B/op        203 allocs/op
BenchmarkGinGplusAPI-2            249759              4695 ns/op             693 B/op         13 allocs/op
BenchmarkGinParseAPI-2            130309              8849 ns/op            1381 B/op         26 allocs/op
PASS
ok      github.com/vishr/web-framework-benchmark        36.037s
3)测试结论


主要指标

概览
名称与所有者vishr/web-framework-benchmark
主编程语言Go
编程语言Go (语言数: 1)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-04-01 00:13:20
推送于2020-12-16 04:31:04
最后一次提交2020-12-15 20:31:02
发布数0
用户参与
星数133
关注者数4
派生数37
提交数14
已启用问题?
问题数0
打开的问题数0
拉请求数3
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Web Framework Benchmark

Requirement

  • dep

Installation

  • go get github.com/vishr/web-framework-benchmark

Running Benchmark

go test -bench=.