I am working on some performance tests of my own, so I am very interested in seeing how this plays out. Please keep us posted on any updates that you might have.
I replaced the Castle Windsor IoC with the Unity IoC and the MvcContrib UnityControllerFactory. The memory issue is resolved. I have more testing to do, but I'm encouraged. Here are my results using the Unity dependency injection.
The ASP.Net web forms application did not use an IoC container. It's memory usage was normal. Only the MVC application uses the IoC container. And switching to the Unity IoC solved the "out of memory" problem.
I suspect that as the load increased from 200 to 500 users, the client machine became the bottleneck and that is why the two applications' performances converge at higher loads.
So I divided the load across two client machines, and ran the tests again. The MVC application exhibited the same 29% increase in performance. Nice.
I'd like to know more about this (possible) issue with Castle Windsor for IoC, i just made the choice to go with it, but i had no idea of an issue. Question is is there a problem with Castle? I was staying away from MvcContrib because with NHibernate and
all the others i was starting to get frameworks for the frameworks and was concerned about this issue and other.
I really don't know and don't have the time to investigate the problem with Castle Windsor. It's all I can do to keep up with the software technology. And I still have much to do.
All I know is that I changed the IoC from Castle to Unity and the problem disappeared. I didn't change any other code. So I made an educated guess and got lucky this time.
senfo
Member
7 Points
9 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 03, 2009 07:49 PM|LINK
I am working on some performance tests of my own, so I am very interested in seeing how this plays out. Please keep us posted on any updates that you might have.
rgalante
Member
14 Points
26 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 03, 2009 09:00 PM|LINK
I replaced the Castle Windsor IoC with the Unity IoC and the MvcContrib UnityControllerFactory. The memory issue is resolved. I have more testing to do, but I'm encouraged. Here are my results using the Unity dependency injection.
Web Forms MVC
20 users: 2.94 sessions / sec (0 errors) 4.17 sessions / sec (0 errors)
50 users: 3.13 sessions / sec (0 errors) 4.55 sessions / sec (0 errors)
100 users: 3.33 sessions / sec (0 errors) 4.35 sessions / sec (3 errors)
200 users: 3.33 sessions / sec (3 errors) 3.86 sessions / sec (36 errors)
500 users: 3.85 sessions / sec (221 errors) 3.92 sessions / sec (243 errors)
CPU usage is less volatile with the MVC framework using the Unity IoC, and memory utilization is better with the Unity IoC.
At higher loads, both architectures perform about the same. At lower loads, the MVC framework outperforms the web forms in my test environment.
senfo
Member
7 Points
9 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 04, 2009 12:16 PM|LINK
Were you using an IoC framework in the ASP.NET application?
rgalante
Member
14 Points
26 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 04, 2009 04:11 PM|LINK
The ASP.Net web forms application did not use an IoC container. It's memory usage was normal. Only the MVC application uses the IoC container. And switching to the Unity IoC solved the "out of memory" problem.
I suspect that as the load increased from 200 to 500 users, the client machine became the bottleneck and that is why the two applications' performances converge at higher loads.
So I divided the load across two client machines, and ran the tests again. The MVC application exhibited the same 29% increase in performance. Nice.
Webbuilder451
Member
18 Points
25 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 04, 2009 09:43 PM|LINK
I'd like to know more about this (possible) issue with Castle Windsor for IoC, i just made the choice to go with it, but i had no idea of an issue. Question is is there a problem with Castle? I was staying away from MvcContrib because with NHibernate and all the others i was starting to get frameworks for the frameworks and was concerned about this issue and other.
rgalante
Member
14 Points
26 Posts
Re: Performance: ASP.Net Web Forms vs ASP.Net MVC
Nov 04, 2009 10:37 PM|LINK
I really don't know and don't have the time to investigate the problem with Castle Windsor. It's all I can do to keep up with the software technology. And I still have much to do.
All I know is that I changed the IoC from Castle to Unity and the problem disappeared. I didn't change any other code. So I made an educated guess and got lucky this time.