The baseline has finally been developed, the performance of the server and the ability to withstand the pressure on the Internet, not find the right test tools can be used. So I wrote a test tool based on MFC.
The startup interface is as follows:
After setting the parameters, run as follows:
Run through the following interface:
The source path is as follows: Https://github.com/RibbonServyou/TCPTestTool
Note: 1, the first time on GitHub to submit code, do not know how to create a new folder, so sln may not be opened directly, but the source is in the inside.
2, EXE is for their own server use, you may not be able to use directly, you need to modify some custom code according to their own server, mainly to send packets packet, and after receiving the packet unpacking.
3, if the number of connections is too large, and the interval is too small, the interface will be a bit card, then the data will not be accurate, because the internal use of the PostMessage refresh interface, the message may be lost (Message Queuing maximum 10000)
4, when the number of connections more than 200, the time interval of at least 100ms to ensure that the interface is not card, when the number of connections more than 300, the recommended time interval of at least 200ms.
5. It is recommended that the tool be placed on more than one computer to simulate more client concurrency.
6. Please comment and reply if you have any questions.
A C + + write TCP performance test (stress test) tool