NetworkComms communication framework V3 performance test, networkcommsv3
Our testing program adopts this mode.
In the Networkcomms communication framework, if a connection already exists between the client and an endpoint on the server, it is called directly. It is not easy to simulate the connection between the client and the server on the same port.
Fortunately, the NetworkComms communication framework has an important function, that is, it can listen on multiple ports, that is, a server-side program can listen on hundreds or thousands of ports at the same time.
In our testing program, the server listens to several hundred ports, the client establishes a connection with these hundreds of ports, and then sends test data through these connections.
NetworkCommsV3 Performance Testing Program
I have always wanted to create a performance test program. By accident, I found that the NetworkCommsV3 version is already included. I made some modifications and sent the test results for your reference.
Test only on the local machine. Both the client and server are on the same computer (if the server and client are deployed on different computers, the CPU usage should be lower)
Testing Computer:
The program uses. net Framework4.0.
Console Program
Test 1: Download the EXE Test File
Connection: 500
Data size: 50 bytes
Test method: send data once on each connection. After the traversal is completed, wait 30 milliseconds before sending the next round.
Test results: the CPU usage fluctuates between 30% and 40%.
Test 2: Download the EXE Test File
Connection: 800
Data size: 30 bytes
Test method: send data once on each connection. After the traversal is completed, wait 50 milliseconds before sending the next round.
Test results: the CPU usage fluctuates between 30% and 40%.
Test 3
Test 3: Download the EXE Test File
Connection: 500
Data size 1024 bytes
Test method: send data once on each connection. After the traversal is completed, wait 50 milliseconds before sending the next round.
Test results: the CPU usage fluctuates between 30% and 40%.
Test 4: Download the EXE Test File
Connection: 500
Data size 10240 bytes
Test method: send data once on each connection. After the traversal is completed, wait 50 milliseconds before sending the next round.
Test results: the CPU usage fluctuates between 30% and 40%.
Www.networkComms.cn
The communication framework in the above test procedure is a trial version with a validity period