In this article

Winsock Performance Test (Compact 7)

03/14/2014

3 minutes to read

In this article

3/12/2014

This section guides you through running the Windows Sockets 2 (Winsock) Performance Test. The Winsock Performance Test is a client/server network performance test that operates at the Winsock level. The test measures send and receive throughput, packet loss, and round trip time across any network connection that uses a protocol that the Winsock API supports. The Graph Tool can graph the results of this test. For more information, see Graph Tool. The following steps guide you through the process of running the Winsock Performance Test.

Run the Winsock Performance Test Command in Platform Builder

A device must be running and attached to Platform Builder before you can connect to the device from the Windows Embedded Compact Test Kit (CTK). For more information, see Connect to a Device.

To run the Winsock Performance Test, you must first execute a command in Platform Builder to run the server part of the Winsock Performance Test before starting the Winsock Performance Test in the Windows Embedded CTK.

Before executing the command to run the server part of the Winsock Performance Test, Platform Builder must be attached to the device that you are going to connect to from the CTK to run the Winsock Performance Test.

Click Winsock Performance Test, and then click the Add button to add the selected test to the new Winsock Performance template.

Click Done to exit Test Manager.

You are now ready to create a test pass from the template that you just created and saved.

Create a Winsock Performance Test Pass

After you create the test pass template, you can create a test pass.

You must first be connected to a device before you can create a test pass. Connect to the device that you have attached to Platform Builder by running the Window CE Window CE>s perf_winsockd2 -debug command as described in the **To execute the Winsock Performance Test command in Platform Builder ** procedure, if you have not already done so.

To create a Winsock Performance test pass from the template

In the CTK, on the View menu, click Test Pass Templates View.

In the Test Case Explorer window, on the Test Pass Templates View tab, right-click the Winsock Performance template, and then click Use as Current Test Pass.

Note

If Use as Current Test Pass is not available on the shortcut menu, you probably are not connected to a device.

In the Test Pass display window, click the new test pass Windows Embedded that is highlighted, and then type Winsock Performance Pass to rename it.

Note

If a test pass was already in the Test pass display window, you will be asked if you want to save the current test pass before a new test pass is created.

Run the Winsock Performance Test

After the Winsock Performance Test has been added to a test pass, you can run the test.

To run the Winsock Performance test

In the Test pass display window, expand Winsock Performance Pass.

Click Winsock Performance Test.

If the Properties window is not visible, on the View menu, click Properties Window.

In the Current Command Line box, change server_ip to localhost and ip_version to 4 in the command:-o -d perf_winsock2 -c"-s server_ip -i ip_version -l true"

The green status bar at the bottom of the CTK main window displays the progress of the test. When the Winsock Performance Test [In Progress] status changes to Winsock Performance Test [Passed], the test run is complete and you can view the results.