Benchmark
Benchmarks on TechEmpower
# Hardware EnvironmentCPU: 28 HT Cores Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHzMem: 32GB RAMOS : Ubuntu 18.04.3 4.15.0-88-generic #88-UbuntuNet: Switched 10-gigabit ethernetGo : go1.14.x linux/amd64
This is the top 50 on the framework ranking of all programming languages consists of a total of 422 frameworks from all over the world where gnet
is the runner-up.
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 Plaintext Benchmark.
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