From 023e23bc8261bec15a70a7ae932098fb4f82b679 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 28 Nov 2013 19:25:56 +0800 Subject: [PATCH] add performance test --- README.md | 25 +++++++++++++++++++++++++ trunk/conf/srs.conf | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6be0a6951..15bff572f 100755 --- a/README.md +++ b/README.md @@ -54,6 +54,31 @@ m3u8 url: http://127.0.0.1:80/live/livestream.m3u8 14. no vod streaming, live streaming only.
15. no multiple processes, single process only.
+### Performance +1. 300 connections, 150Mbps, 500kbps, CPU 18.8%, 5956KB. +2. 600 connections, 300Mbps, 500kbps, CPU 32.1%, 9808KB. +3. 900 connections, 450Mbps, 500kbps, CPU 49.9%, 11MB. +4. 1200 connections, 600Mbps, 500kbps, CPU 72.4%, 15MB. +5. 1500 connections, 750Mbps, 500kbps, CPU 81.9%, 28MB. +6. 1800 connections, 900Mbps, 500kbps, CPU 90.2%, 41MB. +
+----total-cpu-usage---- -dsk/total- ---net/lo-- ---paging-- ---system--
+usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw 
+ 58   9  32   0   0   1|   0  4168k| 277M  277M|   0     0 |  29k   25k
+ 61   8  30   0   0   1|   0  1168k| 336M  336M|   0     0 |  29k   24k
+ 63   8  27   0   0   1|   0  2240k| 124M  124M|   0     0 |  32k   33k
+ 62   8  28   0   0   1|   0  1632k| 110M  110M|   0     0 |  31k   33k
+ 67   9  23   0   0   2|   0  1604k| 130M  130M|   0     0 |  33k   32k
+ 63   9  27   0   0   2|   0  1496k| 145M  145M|   0     0 |  32k   32k
+ 61   9  29   0   0   1|   0  1112k| 132M  132M|   0     0 |  32k   33k
+ 63   9  27   0   0   2|   0  1220k| 145M  145M|   0     0 |  32k   33k
+ 53   7  40   0   0   1|   0  1360k| 115M  115M|   0     0 |  24k   26k
+ 51   7  41   0   0   1|   0  1184k| 146M  146M|   0     0 |  24k   27k
+ 39   6  54   0   0   1|   0  1284k| 105M  105M|   0     0 |  22k   28k
+ 41   6  52   0   0   1|   0  1264k| 116M  116M|   0     0 |  25k   28k
+ 48   6  45   0   0   1|   0  1272k| 143M  143M|   0     0 |  27k   27k
+
+ ### Releases * 2013-11-26, [release v0.5](https://github.com/winlinvip/simple-rtmp-server/releases/tag/0.5), support HLS(m3u8), fragment and window. 14449 lines.
* 2013-11-10, [release v0.4](https://github.com/winlinvip/simple-rtmp-server/releases/tag/0.4), support reload config, pause, longtime publish/play. 12500 lines.
diff --git a/trunk/conf/srs.conf b/trunk/conf/srs.conf index 2b549884e..b8a84849e 100755 --- a/trunk/conf/srs.conf +++ b/trunk/conf/srs.conf @@ -1,5 +1,5 @@ # the listen ports, split by space. -listen 1936; +listen 1935; # the default chunk size is 128, max is 65536, # some client does not support chunk size change, # however, most clients supports it and it can improve @@ -10,7 +10,7 @@ chunk_size 65000; # for which cannot identify the required vhost. vhost __defaultVhost__ { enabled on; - gop_cache off; + gop_cache on; hls on; hls_path ./objs/nginx/html; hls_fragment 5;