Subsonic 3 VS Entity Framework

前端 未结 2 905
庸人自扰
庸人自扰 2021-02-06 09:36

Anyone worked with Subsonic3 and Entity Framework here who can tell me the pros and cons? This is my first time attempting to try these. Subsonic is easy to setup so as the Enti

2条回答
  •  故里飘歌
    2021-02-06 09:57

    In case this helps, in my benchmarks I used Subsonic 2.1 (as stated) and compared data access layers in a moderate load scenario (methodology as stated). I provided code, so my test can easily be replicated.

    If you subject the system to load, reproducing the conditions in a web application while in use, EF proves to offer much better performance. Load tests of the complete web application confirm this. In more complex tests, the optimisation capabilities of EF such as lazy-loading can offer yet greater performance advantages over Subsonic.

    If you compare individual data access operations, e.g. in a simple unit test, Subsonic appears to be faster. In particular, Subsonic initialised more quickly.

    I would recommend Fluent NHibernate or Entity Framework if performance is a key consideration.

提交回复
热议问题