A C + + write TCP performance test (stress test) tool

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.