https://github.com/blackbeans/turbo
turbo is a lightweight network framework for golang
https://github.com/blackbeans/turbo
Last synced: 4 months ago
JSON representation
turbo is a lightweight network framework for golang
- Host: GitHub
- URL: https://github.com/blackbeans/turbo
- Owner: blackbeans
- Created: 2015-04-02T14:34:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T15:18:47.000Z (about 3 years ago)
- Last Synced: 2025-08-15T15:40:51.052Z (10 months ago)
- Language: Go
- Homepage:
- Size: 274 KB
- Stars: 73
- Watchers: 12
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##### turbo
turbo is a lightweight network framework for golang
##### Install
go get github.com/blackbeans/turbo
#### benchmark
main/turbo_server_demo.go
main/turbo_client_demo.go
env:
2.5 GHz Intel Core i7 16GRAM macbook pro
1 connection 1 groutine 70000 tps
#### 协议定义
总包长(不包含本4B) 请求的seqId 类型 协议的版本号 扩展预留字段 body的长度 Body
---------------------------------------------------------------------------
|Length(4B)|Opaque(4B)|CmdType(1B)|Version(2B)|Extension(8B)|BodyLen(4B)|Body|
---------------------------------------------------------------------------
##### quickstart
main/turbo_server_demo.go
main/turbo_client_demo.go