I am writing an MVC2 asp.net web app. I would like to have some performance tests within the test project, where I emulate hundreds of users all accessing the database layer at the same time. Is there a way that I can write a test that will make lots of concurrent calls to different controllers? Do I need to spawn lots of threads to make the multiuser aspect truly concurrent?
Share
I would recommend you using a specific tool for performing load tests instead of writing this logic manually by spawning new threads. For example if you have the full version of Visual Studio you could create web tests which represent different user scenarios and then execute those scenarios in a load test. Another useful tool is Apache JMeter.