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=.