测试环境:CentOS6.7-x86_64 虚拟机(4核,2G内存)
测试代码:1. smart/test/examples/throughput/
2. smart/test/examples/tpsclient/ --单链接
3. smart/test/examples/concurrence/ --并发多链接
[jackhen@192.168.4.117 bin_d]$ ./tpsserver_d //服务端start tpsserver listen at[0.0.0.0:8800], listenfd=[4]
一、单链接
[jackhen@192.168.4.117 bin_d]$ ./tpsclient_d Usage: ./tpsclient_d server_ip server_port block_size[jackhen@192.168.4.117 bin_d]$ ./tpsclient_d 127.0.0.1 8800 16000s
[jackhen@192.168.4.117 bin_d]$ ./tpsserver_d start tpsserver listen at[0.0.0.0:8800], listenfd=[4]TPS: 63.406372 MB/sTPS: 64.233398 MB/sTPS: 64.526367 MB/sTPS: 66.513062 MB/sTPS: 64.675903 MB/sTPS: 64.511108 MB/sTPS: 63.702393 MB/sTPS: 64.840698 MB/sTPS: 63.598633 MB/s
二、100个并发链接
[jackhen@192.168.4.117 bin_d]$ ./conclient_d Usage: ./conclient_d server_ip server_port block_size [g_con_counts][jackhen@192.168.4.117 bin_d]$ ./conclient_d 127.0.0.1 8800 16000 100// 100个并发链接,每个链接16000字节ping-pong测试
[jackhen@192.168.4.117 bin_d]$ ./conclient_d Usage: ./conclient_d server_ip server_port block_size [g_con_counts][jackhen@192.168.4.117 bin_d]$ ./conclient_d 127.0.0.1 8800 16000 100TPS: 760.052490 MB/sTPS: 752.410889 MB/sTPS: 750.952148 MB/sTPS: 654.446411 MB/sTPS: 645.294189 MB/sTPS: 660.311890 MB/sTPS: 662.033081 MB/sTPS: 668.609619 MB/sTPS: 656.381226 MB/sTPS: 651.461792 MB/sTPS: 665.548706 MB/s
==============================================================================
8核8G --32位物理机 测试
==============================================================================
32核128G --64位物理机 测试