I am load-testing a WCF service with NetTcpBinding. To do so, I have a unit test which makes call to the service and asks for X number of data results and I use this unit test in a loadtest(Visual Studio 2010).
The problem is I do not know a way to find out what is the maximum throughput of the service. I keep changing the number of users/clients in the loadtest and try to see if I am getting results any faster. Is there any better way to do it?
If you want to measure performance of your WCF service, you may want to use a built-in mechanism called performance counters. It allows you to add some diagnostic intructions in you code like increasing the counter and later view the results in a perfmon.exe tool. More information on http://msdn.microsoft.com/en-us/library/ms735098.aspx.
I suppose you can use it to test how fast the service is responding to a specific number of clients to find the maximum throughput.