性能报告——使用AOP与DYNAMICProxy的orm性能测试

2010-07-27 第一次性能测试:

不使用缓存,每个操作都直接操作数据库。

------ Test started: Assembly: Pixysoft.Framework.Noebe.Orm.dll ------


aop

Time Elapsed: 21,854ms

CPU time: 3,281,250,000ns

Gen 0: 18

Gen 1: 1

Gen 2: 0



1 passed, 0 failed, 0 skipped, took 22.92 seconds (Ad hoc).



------ Test started: Assembly: Pixysoft.Framework.Noebe.Orm.dll ------


proxy

Time Elapsed: 21,065ms

CPU time: 2,843,750,000ns

Gen 0: 17

Gen 1: 2

Gen 2: 0



1 passed, 0 failed, 0 skipped, took 22.14 seconds (Ad hoc).


对比结果看,性能相差不大,主要是数据库的操作很缓慢。 

  

---------------------------------------------------------------------------

------ Test started: Assembly: Pixysoft.Framework.Noebe.Orm.dll ------


aop-buffer

Time Elapsed: 14,541ms

CPU time: 2,015,625,000ns

Gen 0: 11

Gen 1: 3

Gen 2: 0



1 passed, 0 failed, 0 skipped, took 15.61 seconds (Ad hoc).


------ Test started: Assembly: Pixysoft.Framework.Noebe.Orm.dll ------


proxy-buffer

Time Elapsed: 5,048ms

CPU time: 984,375,000ns

Gen 0: 3

Gen 1: 1

Gen 2: 0



1 passed, 0 failed, 0 skipped, took 6.36 seconds (Ad hoc).


这个比较可以看出在没有数据库的影响的时候,真实的性能对比差异。 


原文地址:https://www.cnblogs.com/zc22/p/1786336.html