module
Version:
v0.0.0-...-643218b
Opens a new window with list of versions in this module.
Published: Nov 12, 2024
License: MIT
Opens a new window with license information.
README
¶
plaza
install
install
go install mvdan.cc/gofumpt@latest
usage
gofumpt -l -w .
build
update dep
go get -u ./...
go mod tidy
go work sync
# build proto
make api
# build docker and run
make docker
ROADMAP
TODO
- freeze struct will be add in the future
summary
- 本机测试benchmark的占用资源超过 服务端的资源
- 都是在本机测试,网络延迟的影响很弱。暂时没有条件在真实的跨网络机器之间测试
- 机器配置
- 系统 Windows 10 专业版
- 处理器 13th Gen Intel(R) Core(TM) i7-13700KF 3.40 GHz(8个性能核心,8个能效核心,24线程)
- 内存 64GB
执行命令
## 启动服务器
go run sample/direct/main.go
## 启动benchmark 工具
go run sample/benchmark/main.go -cliCnt 10
客户端数量 |
每个客户端发送数量 |
总花费时间 |
qps |
rt |
10 |
100000 |
8998 ms |
111135.81 |
0.009 ms |
20 |
100000 |
15561 ms |
128526.44 |
0.008 ms |
50 |
100000 |
37533 ms |
133216.10 |
0.008 ms |
Click to show internal directories.
Click to hide internal directories.