zoukankan      html  css  js  c++  java
  • 性能报告——使用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).


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


  • 相关阅读:
    WPF Layout & Image异步加载
    WPF Binding Validation 数据验证
    推荐一个.NET 命令行参数Parser 库
    Windows 下 命令行增强工具
    Windbg 离线调试.Net 程序入门
    拼写检查算法 Golang 版
    新Blog
    WPF 实现Loading效果
    struct结构体的变长特性
    第2章 构造函数语意学
  • 原文地址:https://www.cnblogs.com/zc22/p/1786336.html
Copyright © 2011-2022 走看看