Categorygithub.com/FZambia/go_websocket_memory
modulepackage
0.0.0-20191003065510-5c232efeb5f8
Repository: https://github.com/fzambia/go_websocket_memory.git
Documentation: pkg.go.dev

# README

Investigate Gorilla Websocket memory usage in various scenarios.

Stats showed here were reported by each server after all 10k connections from client script successfully established.

server_01

Smaller buffers, no goroutine.

Alloc = 138 MiB	TotalAlloc = 182 MiB	Sys = 272 MiB

server_02

Reuse buffers, no goroutine.

Alloc = 155 MiB	TotalAlloc = 160 MiB	Sys = 273 MiB

server_03

Smaller buffers, with goroutine.

Alloc = 37 MiB	TotalAlloc = 182 MiB	Sys = 138 MiB

server_04

Reuse buffers, with goroutine.

Alloc = 94 MiB	TotalAlloc = 160 MiB	Sys = 206 MiB

server_05

Smaller read buffer, with goroutine, write buffer pool.

Alloc = 26 MiB	TotalAlloc = 171 MiB	Sys = 138 MiB

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author