docs/markdown/benchmark.md
2025-01-20 10:05:25 +08:00

41 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MergePet Benchmark 基准测试结果
## 玩家在线内存测试
测试系统window 11 cup:inter i5测试玩家数量10000测试逻辑保持10000玩家在线每秒请求登录
```txt
Alloc = 285 MiB TotalAlloc = 7961 MiB Sys = 830 MiB NumGC = 63
PlayerNum = 10000
```
### 测试结果
10000玩家在线消耗系统内存830M每个玩家内存消耗10K。
## 玩家在线内存测试2
测试系统window 11 cup:inter i5;测试玩家数量10000测试逻辑保持10000玩家在线每秒生成3个订单
```txt
Alloc = 304 MiB TotalAlloc = 3441 MiB Sys = 701 MiB NumGC = 35
PlayerNum = 10000
```
### 测试结果2
10000玩家在线消耗系统内存701M
## 玩家在线内存测试3
测试系统window 11 cup:inter i5;测试玩家数量10000测试逻辑保持10000玩家在线增加锦标赛分组数据排行榜数据
```txt
Alloc = 240 MiB TotalAlloc = 10357 MiB Sys = 1072 MiB NumGC = 53
PlayerNum = 10000
```
### 测试结果3
10000玩家在线消耗系统内存1072M