Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakecoffman/rely
reliable UDP messages for Go
https://github.com/jakecoffman/rely
ack multiplayer-game reliability rtt udp
Last synced: 3 months ago
JSON representation
reliable UDP messages for Go
- Host: GitHub
- URL: https://github.com/jakecoffman/rely
- Owner: jakecoffman
- License: bsd-3-clause
- Created: 2018-02-03T04:55:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T00:55:13.000Z (over 4 years ago)
- Last Synced: 2024-10-04T15:31:41.404Z (4 months ago)
- Topics: ack, multiplayer-game, reliability, rtt, udp
- Language: Go
- Homepage:
- Size: 54.7 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rely
port of https://github.com/networkprotocol/reliable to Go
[![GoDoc](https://godoc.org/github.com/jakecoffman/rely?status.svg)](http://godoc.org/github.com/jakecoffman/rely) [![Build Status](https://travis-ci.org/jakecoffman/rely.svg?branch=master)](https://travis-ci.org/jakecoffman/rely)
# performance
Tests below done on MBP 2.6GHz 6-Core i7 using Go 1.15.
rely without pooling
```
$ go build -tags=test && time ./soak -iterations=8100
./soak -iterations=8100 0.26s user 0.02s system 99% cpu 0.280 total
```rely with pooling
```
$ go build -tags=test && time ./soak -iterations=8100 -pool=true
./soak -iterations=8100 -pool=true 0.23s user 0.01s system 90% cpu 0.271 total
```reliable.io
```
$ time ./bin/soak 8100
initializing
shutdown
./bin/soak 8100 0.70s user 0.00s system 63% cpu 1.124 total
```