Skip to content

Commit

Permalink
doc: add the echo benchmarks on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Aug 1, 2021
1 parent 990db79 commit f429e7a
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 17 deletions.
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,52 @@ To see the full ranking list, visit [TechEmpower Plaintext Benchmark](https://ww

```powershell
# Machine information
OS : Ubuntu 20.04/x86_64
CPU : 8 processors, AMD EPYC 7K62 48-Core Processor
Memory : 16.0 GiB
OS : Ubuntu 20.04/x86_64
CPU : 8 CPU cores, AMD EPYC 7K62 48-Core Processor
Memory : 16.0 GiB
# Go version and settings
Go Version : go1.16.5 linux/amd64
GOMAXPROCS : 8
# Benchmark parameters
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
Test duration : 15s
TCP connections : 500/1000/5000/10000
Packet size : 512/1024/2048/4096/8192/16384/32768/65536 bytes
Test duration : 15s
```

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

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

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

## On MacOS (kqueue)

### Test Environment

```powershell
# Machine information
OS : MacOS Big Sur/x86_64
CPU : 6 CPU cores, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory : 16.0 GiB
# Go version and settings
Go Version : go1.16.5 darwin/amd64
GOMAXPROCS : 12
# Benchmark parameters
TCP connections : 300/400/500/600/700
Packet size : 512/1024/2048/4096/8192 bytes
Test duration : 15s
```

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

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

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

# 🏛 Website

Please visit the [official website](https://gnet.host/blog/presenting-gnet/) for more details about architecture, usage and other information of `gnet`.
Expand Down
48 changes: 37 additions & 11 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,58 @@ Go : go1.14.x linux/amd64

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

## Linux (epoll)
## On Linux (epoll)

### 系统参数
### Test Environment

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

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

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

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

## On MacOS (kqueue)

### Test Environment

```powershell
# Machine information
OS : MacOS Big Sur/x86_64
CPU : 6 CPU cores, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory : 16.0 GiB
# Go version and settings
Go Version : go1.16.5 darwin/amd64
GOMAXPROCS : 12
# Benchmark parameters
TCP connections : 300/400/500/600/700
Packet size : 512/1024/2048/4096/8192 bytes
Test duration : 15s
```

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

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

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

# 🏛 官网

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

0 comments on commit f429e7a

Please sign in to comment.