plaza

module
v0.0.0-...-643218b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: MIT

README

plaza

install

format go

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

  • storage redis + mysql/pg 等关系数据库

  • storage redis + mongodb 等文档数据库

TODO

  • freeze struct will be add in the future

performance

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

Directories

Path Synopsis
pkg
map
net
sample
api Module
backend Module
benchmark Module
broker Module
gateway Module
middleware Module
mock Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL