1 Star 0 Fork 0

caixw / go-http-routers-testing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

go-http-routers-testing

Go 路由的性能测试工具

https://caixw.github.io/go-http-routers-testing/

安装

go get github.com/caixw/go-http-routers-testing

运行测试

main.go 可以有以下参数:

  • test.benchtime 指定每个测试的运行时间;
go run json.go -test.benchtime=5s

之后通过以下代码编译成 html:

go run html.go

如果要本地查看数据,请运行:

go run ./serve.go

协作

与 api 定义有的内容定义在 apis 目录下,如果不同的风格需求可以在此目录下添加即可;

路由定义在 routers 目录下,新路由只需要在此目录下定义 Load 方法即可;

不要提交 /docs/data 下的数据,该数据由本人统一产生。

版权

本项目采用 MIT 开源授权许可证,完整的授权说明可在 LICENSE 文件中找到。

The MIT License (MIT) Copyright (c) 2017 caixw Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Go 路由功能测试工具 展开 收起
Go 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/caixw/go-http-routers-testing.git
git@gitee.com:caixw/go-http-routers-testing.git
caixw
go-http-routers-testing
go-http-routers-testing
master

搜索帮助