Benchmarks
1. Hardware
1.1. PC
- CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (3000.02-MHz K8-class CPU)
- Memory: 4GB
- HDD: 476938MB <Seagate ST3500320AS SD1A> at ata5-master SATA300
- Network cards
- Real Tek 8168 / 8168B / 8168C / 8168CP / 8168D / 8111B / 8111C / 8111CP PCIe Gigabit Ethernet
- Real Tek 8139 10/100BaseTX
1.2. Mac Book Pro
- CPU: Intel Core 2 Duo 2.66 GHz L2 Cache: 3 MB
- Memory: 4GB
- HDD: 500GB WDC WD5000BEVT-22ZAT0
- Network cards
- Built-in 10/100/1000BASE-T Gigabit Ethernet (RJ-45 connector)
- 2. Built-in AirPort? Extreme Wi-Fi wireless networking2 (based on IEEE 802.11n draft specification); IEEE 802.11a/b/g compatible
2. Operating systems
- FreeBSD bsd.devss.ro 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #2: Mon Jun 22 14:33:26 UTC 2009 root@…:/usr/obj/usr/src/sys/SHIRETU amd64
- Darwin shiretu.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
- Linux g-work 2.6.29-gentoo-r5 #2 SMP Fri Dec 4 14:41:13 EET 2009 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel? GNU/Linux
3. Software used
- rtmpd revision r875
- flazr 1.7-RC2
4. Tests
4.1. vod, mac-flazr, FreeBSD-rtmpd, gigabit network
- 6 flazr instances running on mac, each connecting 100 times
- 1 rtmpd instance running on FreeBSD
- number of connections: 600
- total mean throughput: 80MBytes/s
- flazr CPU 15%-17% and ~340MB ram per instance (6 of them)
- rtmpd CPU 15%-20% and 223MB ram
4.2. live, mac-flazr, FreeBSD-rtmpd, gigabit network
- FMLE publishes h264/mp3 at 800kbits/s
- 4 flazr instances running on mac, each connecting 100 times
- 1 rtmpd instance running on FreeBSD
- number of connections: 401 (400 + 1 connection to see it in action form flash player)
- total throughput: 30-40MBytes/s
- flazr CPU 8%-14% and ~320MB ram per instance (4 of them)
- rtmpd CPU 6%-7.3% and 105MB ram
- playback time 1 hour and 20 minutes
$ sockstat -c|grep :1935|wc -l 402 last pid: 2929; load averages: 0.49, 0.29, 0.16 up 0+00:13:58 17:40:10 54 processes: 1 running, 53 sleeping CPU: 2.1% user, 0.0% nice, 2.8% system, 13.7% interrupt, 81.4% idle Mem: 126M Active, 49M Inact, 319M Wired, 1644K Cache, 253M Buf, 3452M Free Swap: 4096M Total, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 2923 shiretu 1 4 0 103M 84052K kqread 1 0:13 6.79% rtmpserver
4.3. live, mac-flazr, Gentoo-rtmpd, gigabit network
- FMLE publishes VP6/mp3 at 800kbits/s
- 4 flazr instances running on mac, each connecting 100 times
- 1 rtmpd instance running on Gentoo
- number of connections: 401 (400 + 1 connection to see it in action form flash player)
- total throughput: 30-40MBytes/s
- flazr CPU 8%-14% and ~320MB ram per instance (4 of them)
- rtmpd CPU 17% and 60MB ram
- playback time 30 minutes
$ netstat -tanp|grep rtmpserver|grep ESTABLISHED|wc -l (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) 404 top - 17:14:53 up 1:52, 5 users, load average: 0.00, 0.00, 0.00 Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 2.1%us, 4.0%sy, 0.0%ni, 88.9%id, 0.0%wa, 1.5%hi, 3.5%si, 0.0%st Mem: 3632816k total, 1035480k used, 2597336k free, 44028k buffers Swap: 4195760k total, 0k used, 4195760k free, 845472k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1940 shiretu 20 0 67840 62m 4056 S 17 1.8 2:21.87 rtmpserver
