Skip to main content

Benchmark

ZLMediaKitLess than 1 minute

This test is severely outdated and is not indicative.

Test Environment

  • System: Linux core 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64 GNU/Linux
  • Memory: 15GB
  • CPU: Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz; 4 cores
  • Network: Gigabit Ethernet
  • The test is conducted by accessing the server through a loopback network on the test client.

Test Tools

ZLMeidaKit comes with a test benchmark program called test_benchmark, which uses a single-process multi-threaded model.

Test Server

ZLMeidaKit includes a test server called test_server, which supports RTSP/RTMP/HLS protocols and uses a multi-threaded model.

Test Media Stream

The test_server pulls an RTMP stream rtmp://live.hkstv.hk.lxdns.com/live/hks1 and then forwards it using the test_server. The approximate bitrate of the stream is around 300-400 Kbit/s.

Test Results

Note

When building with CMake, use the command cmake .. -DCMAKE_BUILD_TYPE=Release to compile the optimized version.

Number of Players (RTMP)CPU (Max 400%)Memory (VIRT/RES)Bandwidth (Average)Packet Loss
100020%702M/13M40 MByte/sNone
200039%702M/18M80 MByte/sNone
500092%702M/32M200 MByte/sNone
10000170%702M/59M400 MByte/sNone
Number of Players (RTSP/TCP)CPU (Max 400%)Memory (VIRT/RES)Bandwidth (Average)Packet Loss
100018%702M/13M42 MByte/sNone
200035%702M/19M82 MByte/sNone
500080%702M/35M198 MByte/sNone
10000130%702M/62M405 MByte/sNone

Comparison with SRS Performance

Number of Players (RTMP)CPU (Max 400%)Memory (VIRT/RES)Bandwidth (Average)Packet Loss
100010%310M/53M41.17 MByte/sNone
200018%604M/117M83.86 MByte/sNone