Skip to content

Commit f429e7a

Browse files
committed
doc: add the echo benchmarks on macOS
1 parent 990db79 commit f429e7a

File tree

2 files changed

+69
-17
lines changed

2 files changed

+69
-17
lines changed

README.md

+32-6
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,52 @@ To see the full ranking list, visit [TechEmpower Plaintext Benchmark](https://ww
7878

7979
```powershell
8080
# Machine information
81-
OS : Ubuntu 20.04/x86_64
82-
CPU : 8 processors, AMD EPYC 7K62 48-Core Processor
83-
Memory : 16.0 GiB
81+
OS : Ubuntu 20.04/x86_64
82+
CPU : 8 CPU cores, AMD EPYC 7K62 48-Core Processor
83+
Memory : 16.0 GiB
8484
8585
# Go version and settings
8686
Go Version : go1.16.5 linux/amd64
8787
GOMAXPROCS : 8
8888
8989
# Benchmark parameters
90-
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
91-
Test duration : 15s
9290
TCP connections : 500/1000/5000/10000
91+
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
92+
Test duration : 15s
9393
```
9494

95-
#### [Echo Benchmark](https://github.com/gnet-io/gnet-benchmarks)
95+
#### [Echo benchmark](https://github.com/gnet-io/gnet-benchmarks)
9696

9797
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_conn_linux.png)
9898

9999
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_packet_linux.png)
100100

101+
## On MacOS (kqueue)
102+
103+
### Test Environment
104+
105+
```powershell
106+
# Machine information
107+
OS : MacOS Big Sur/x86_64
108+
CPU : 6 CPU cores, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
109+
Memory : 16.0 GiB
110+
111+
# Go version and settings
112+
Go Version : go1.16.5 darwin/amd64
113+
GOMAXPROCS : 12
114+
115+
# Benchmark parameters
116+
TCP connections : 300/400/500/600/700
117+
Packet size : 512/1024/2048/4096/8192 bytes
118+
Test duration : 15s
119+
```
120+
121+
#### [Echo benchmark](https://github.com/gnet-io/gnet-benchmarks)
122+
123+
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_conn_macos.png)
124+
125+
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_packet_macos.png)
126+
101127
# 🏛 Website
102128

103129
Please visit the [official website](https://gnet.host/blog/presenting-gnet/) for more details about architecture, usage and other information of `gnet`.

README_ZH.md

+37-11
Original file line numberDiff line numberDiff line change
@@ -71,32 +71,58 @@ Go : go1.14.x linux/amd64
7171

7272
## 同类型的网络库性能对比
7373

74-
## Linux (epoll)
74+
## On Linux (epoll)
7575

76-
### 系统参数
76+
### Test Environment
7777

7878
```powershell
79-
# 机器信息
80-
OS : Ubuntu 20.04/x86_64
81-
CPU : 8 processors, AMD EPYC 7K62 48-Core Processor
82-
Memory : 16.0 GiB
79+
# Machine information
80+
OS : Ubuntu 20.04/x86_64
81+
CPU : 8 CPU cores, AMD EPYC 7K62 48-Core Processor
82+
Memory : 16.0 GiB
8383
84-
# Go 版本和配置
84+
# Go version and settings
8585
Go Version : go1.16.5 linux/amd64
8686
GOMAXPROCS : 8
8787
88-
# 压测参数
89-
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
90-
Test duration : 15s
88+
# Benchmark parameters
9189
TCP connections : 500/1000/5000/10000
90+
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
91+
Test duration : 15s
9292
```
9393

94-
#### [Echo 性能压测](https://github.com/gnet-io/gnet-benchmarks)
94+
#### [Echo benchmark](https://github.com/gnet-io/gnet-benchmarks)
9595

9696
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_conn_linux.png)
9797

9898
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_packet_linux.png)
9999

100+
## On MacOS (kqueue)
101+
102+
### Test Environment
103+
104+
```powershell
105+
# Machine information
106+
OS : MacOS Big Sur/x86_64
107+
CPU : 6 CPU cores, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
108+
Memory : 16.0 GiB
109+
110+
# Go version and settings
111+
Go Version : go1.16.5 darwin/amd64
112+
GOMAXPROCS : 12
113+
114+
# Benchmark parameters
115+
TCP connections : 300/400/500/600/700
116+
Packet size : 512/1024/2048/4096/8192 bytes
117+
Test duration : 15s
118+
```
119+
120+
#### [Echo benchmark](https://github.com/gnet-io/gnet-benchmarks)
121+
122+
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_conn_macos.png)
123+
124+
![](https://github.com/panjf2000/gnet_benchmarks/raw/master/results/echo_packet_macos.png)
125+
100126
# 🏛 官网
101127

102128
关于 `gnet` 的架构设计、使用方法以及其他更多的信息和细节,请访问[官网](https://gnet.host/blog/presenting-gnet-cn/)

0 commit comments

Comments
 (0)