Benchmark
Benchmarks on TechEmpower
# Hardware Environment* 28 HT Cores Intel(R) Xeon(R) Gold 5120 CPU @ 3.20GHz* 32GB RAM* Dedicated Cisco 10-gigabit Ethernet switch* Debian 12 "bookworm"* Go1.19.x linux/amd64
This is a leaderboard of the top 50 out of 486 frameworks that encompass various programming languages worldwide, in which gnet
is ranked first.
This is the full framework ranking of Go and gnet
tops all the other frameworks, which makes gnet
the fastest networking framework in Go.
To see the full ranking list, visit TechEmpower Benchmark Round 22.
Contrasts to the similar networking libraries
On Linux (epoll)
Test Environment
# Machine informationOS : Ubuntu 20.04/x86_64CPU : 8 CPU cores, AMD EPYC 7K62 48-Core ProcessorMemory : 16.0 GiB# Go version and settingsGo Version : go1.17.2 linux/amd64GOMAXPROCS : 8# Benchmark parametersTCP connections : 1000/2000/5000/10000Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytesTest duration : 15s
Echo benchmark
On MacOS (kqueue)
Test Environment
# Machine informationOS : MacOS Big Sur/x86_64CPU : 6 CPU cores, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHzMemory : 16.0 GiB# Go version and settingsGo Version : go1.16.5 darwin/amd64GOMAXPROCS : 12# Benchmark parametersTCP connections : 300/400/500/600/700Packet size : 512/1024/2048/4096/8192 bytesTest duration : 15s