ZLMediaKit/benchmark.md
2017-12-04 13:49:34 +08:00

27 lines
876 B
Markdown
Raw 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.

# 测试环境
- 系统:centos6.8 64bit
- 内存:8GB
- CPU:Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz;4核
- 网络:千兆网卡
- 测试端环境跟服务端一致(同一千兆局域网内)
# 测试工具
ZLMeidaKit自带测试程序test_benchmark其为单进程模型
请在编译ZLToolKit时打开宏`ENABLE_ASNC_TCP_CLIENT`,否则测试程序是单线程模型;将影响测试端性能。
# 测试服务器
ZLMeidaKit自带测试服务器test_server,支持RTSP/RTMP/HLS服务器多线程模型。
# 测试媒体流
使用test_server拉取的rtmp流`rtmp://live.hkstv.hk.lxdns.com/live/hks`;然后通过test_server转发代理。
该码流大概300~400Kbit/s左右。
# 测试结果
| 播放器个数(rtmp) | CPU(最大400%) | 内存(VIRT/RES) | 带宽(平均) | 丢包 |
| --- | --- | --- | --- | --- |
| 2000 | 110% | 587M/23M | 87.28 MByte/s | 无 |