# grpc-rps **Repository Path**: jinq0123/grpc-rps ## Basic Information - **Project Name**: grpc-rps - **Description**: Test grpc-go max rps - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-08 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # grpc-rps 测试 grpc 的最大 RPS (Request Per Second, 每秒请求数) 2个虚拟机, 一个运行 greeter_server, 一个运行 greeter_client: ``` [jinqing@host-192-168-150-75 greeter_client]$ cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c 4 Intel Core Processor (Haswell, no TSX) ``` ``` [jinqing@host-192-168-23-194 greeter_server]$ cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c 4 Intel Core Processor (Haswell, no TSX) ``` 结果: ``` [jinqing@host-192-168-150-75 greeter_client]$ ./greeter_client -a 192.168.23.194:50051 -g 100 TPS: 743434 / 15.000000 = 49562.266667 (t/s) [jinqing@host-192-168-150-75 greeter_client]$ ./greeter_client -a 192.168.23.194:50051 -g 1000 TPS: 942592 / 15.000000 = 62839.466667 (t/s) [jinqing@host-192-168-150-75 greeter_client]$ ./greeter_client -a 192.168.23.194:50051 -g 5000 TPS: 928972 / 15.000000 = 61931.466667 (t/s) [jinqing@host-192-168-150-75 greeter_client]$ ./greeter_client -a 192.168.23.194:50051 -g 8000 TPS: 1019075 / 15.000000 = 67938.333333 (t/s) [jinqing@host-192-168-150-75 greeter_client]$ ./greeter_client -a 192.168.23.194:50051 -g 10000 TPS: 979735 / 15.000000 = 65315.666667 (t/s) ```