Performance Stub Walkthrough – Basic Tutorial

Requirements

.NET Framework v 4.5.2 is required.

The .NET framework is available here for free here: https://www.microsoft.com/en-gb/download/details.aspx?id=42642

Hardware requirements depend directly on the volume of traffic, in terms of number per second or size of payload. In our experience a dual core desktop can support thousands of requests per second so long as the network bandwidth is sufficient.

The Stub itself is available here: http://www.softwareconsult.co.uk/performance-stub/

  • Unzip the contents of your download to a folder of your choice, there is no install package as it’s completely portable. You can run from a pen drive if you prefer to.
  • Launch the application PerformanceStub.exe and you will arrive at the main screen below (Main Window). Each row in the table represents a stub which is setup on a unique IP address and port combination on the local machine. An IP Address of 0.0.0.0 means all available IP addresses.

HttpNotWorking

(Main Window)

  • In the screenshot above we can see that the example HTTP stub has failed to start but the HTTPS stub is running. In this case it’s because we have IIS installed and it’s greedily taken port 80 so our stub can’t run. The HTTPS stub runs on port 443 which (by default) IIS hasn’t taken.
  • If at any point your stub fails to start you can open the debugging window by clicking “Start and View Log” button on the Main Window. See this page for more details on troubleshooting: Performance Stub Troubleshooting

Once we stopped IIS running on port 80 we can click start and the stub should turn green, indicating it’s now running, as below:HttpWorkingRequirements:

  • We can test it’s running by visiting the url in Internet Explorer using the following URLs :

http://localhost/example

https://localhost/example - you may get a certificate error here, see this section on certificates if you wish to host an HTTPS endpoint : Performance Stub Walkthrough : HTTPS and Certificates