smartrpc-スループットテスト
1630 ワード
試験環境:CentOS 6.7-x86_64仮想マシン(4コア、2 Gメモリ)
テストコード:1. smart/test/examples/throughput/
一、単一リンク
2、100個の同時リンク
テストコード:1. smart/test/examples/throughput/
2. smart/test/examples/tpsclient/ --
3. smart/test/examples/concurrence/ --
[[email protected] bin_d]$ ./tpsserver_d //
start tpsserver listen at[0.0.0.0:8800], listenfd=[4]
一、単一リンク
[[email protected] bin_d]$ ./tpsclient_d
Usage: ./tpsclient_d server_ip server_port block_size
[[email protected] bin_d]$ ./tpsclient_d 127.0.0.1 8800 16000
s
[[email protected] bin_d]$ ./tpsserver_d
start tpsserver listen at[0.0.0.0:8800], listenfd=[4]
TPS: 63.406372 MB/s
TPS: 64.233398 MB/s
TPS: 64.526367 MB/s
TPS: 66.513062 MB/s
TPS: 64.675903 MB/s
TPS: 64.511108 MB/s
TPS: 63.702393 MB/s
TPS: 64.840698 MB/s
TPS: 63.598633 MB/s
2、100個の同時リンク
[[email protected] bin_d]$ ./conclient_d
Usage: ./conclient_d server_ip server_port block_size [g_con_counts]
[[email protected] bin_d]$ ./conclient_d 127.0.0.1 8800 16000 100
// 100 , 16000 ping-pong
[[email protected] bin_d]$ ./conclient_d
Usage: ./conclient_d server_ip server_port block_size [g_con_counts]
[[email protected] bin_d]$ ./conclient_d 127.0.0.1 8800 16000 100
TPS: 760.052490 MB/s
TPS: 752.410889 MB/s
TPS: 750.952148 MB/s
TPS: 654.446411 MB/s
TPS: 645.294189 MB/s
TPS: 660.311890 MB/s
TPS: 662.033081 MB/s
TPS: 668.609619 MB/s
TPS: 656.381226 MB/s
TPS: 651.461792 MB/s
TPS: 665.548706 MB/s