代码拉取完成,页面将自动刷新
Header Only Cross platform high performance TCP network library using C++ 11.
cmake . -Dbrynet_BUILD_EXAMPLES=ON -Dbrynet_BUILD_TESTS=ON
make
.cmake .
sudo make install
Under localhost, use CentOS 6.5 virtual mahcine(host machine is Win10 i5)
PingPong
Benchamrk's server and client both only use one thread, and packet size is 4k
Broadcast
Server use two network threads and one logic thread, client use one network(also process logic) thread. every packet size is 46 bytes. every packet contain client's id. server broadcast packet to all client when recv one packet from any client. client send one packet when recv packet from server and packet's id equal self.
Ab HTTP(1 network thread)
Server Hostname: 127.0.0.1
Server Port: 9999
Document Path: /abc/de?a=1
Document Length: 25 bytes
Concurrency Level: 100
Time taken for tests: 17.734 seconds
Complete requests: 500000
Failed requests: 0
Total transferred: 41000000 bytes
HTML transferred: 12500000 bytes
Requests per second: 28194.36 [#/sec] (mean)
Time per request: 3.547 [ms] (mean)
Time per request: 0.035 [ms] (mean, across all concurrent requests)
Transfer rate: 2257.75 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 0.2 2 3
Processing: 1 2 0.3 2 7
Waiting: 0 1 0.4 1 6
Total: 2 4 0.2 4 7
Percentage of the requests served within a certain time (ms)
50% 4
66% 4
75% 4
80% 4
90% 4
95% 4
98% 4
99% 4
100% 7 (longest request)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。