Skip to content

a demo of epoll server based on gnet or golang.org/x/sys/unix

Notifications You must be signed in to change notification settings

xiaoxiaoHe-E/golang-epoll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Epoll Demo in Golang

gnet_server.go: a simple demo server using gnet asyncwrite

myepoll.go: a demo server using epoll

myclient.go: a client to receive message from server

Test Result

data block len: 933888

Myepoll: runtime: 15s, total block: 21567, more stable

gnet: runtime: 15s, total block: 26236, variance is larger, sometimes up to 40000+, sometime 15000

About

a demo of epoll server based on gnet or golang.org/x/sys/unix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages