设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> Java >> AOP Benchmark
精品推荐
Java点击TOP10
·java笔试题
·《Thinking in Java》读书笔记
·JSP的mysql_jdbc驱动程序
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·Java Coder 常用软件下载地址
·org.apache.commons.dbcp.SQLNestedException解决办法
·Java图形界面开发:SWT全接触
·如何使用Java POI生成Excel表文件 !
·功能强大的在线网页编辑器
·一些非常不错的Struts 例子下载
编程开发点击TOP10
·ASP.NET 程序中常用的三十三种代码
·利用ASP.NET构建网上考试系统
·C#版的网站新闻发布系统
·(转)23种设计模式汇集
·设计ASP.NET新闻管理系统
·深山红叶袖珍PE工具箱V16正式版
·我的.NET书架 (入门篇)
·java笔试题
·C++经典电子书下载
·网页打印问题,打印设置,打印预览,打印分页,纵打,横打及页面的边距
精选专题

AOP Benchmark

作者: 来源:网络文章 时间:2005-12-15 0:10:52

AOP BenchmarkXML:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

1、性能测试的AOP或代理框架

1)字节码框架

l         ASPectWerkz 1.0

l         ASPectWerkz 2.x

l         ASPectJ 1.2

l         JBoss AOP 1.0

2)代理框架

l         Spring AOP 1.1.1

l         cglib proxy 2.0.2

l         dynaop 1.0beta

3ASPectWerkz可扩展ASPect容器

l         ASPectJ

l         AOP Alliance

l         Spring AOP

 

2、性能测试结果

AWBench (ns/invocation)

ASPect

Werkz2.x

awproxy

ASPect

Werkz1.0

ASPectj

jboss

spring

dynaop

cglib

ext:

aopalliance

ext:

spring

ext:

ASPectj

before, args() target()

10

25

606

10

220

355

390

145

-

220

-

around x 2, args() target()

80

85

651

50

290

436

455

155

465

476

-

before

15

20

520

15

145

275

320

70

-

40

10

before, static info Access

30

30

501

25

175

275

330

70

 

35

 

before, rtti info Access

50

55

535

50

175

275

335

75

 

35

 

after returning

10

20

541

10

135

285

315

85

-

45

15

after throwing

3540

3870

6103

3009

5032

 

6709

8127

 

-

3460

before + after

20

30

511

20

160

445

345

80

-

35

20

before, args() primitives

10

20

555

10

195

350

375

145

 

210

 

before, args() objects

5

25

546

10

185

325

345

115

 

200

 

around

60

95

470

10

 

225

315

75

 

-

90

around, rtti info Access

70

70

520

50

140

250

340

80

70

70

-

around, static info Access

80

90

486

25

135

245

330

75

80

80

-

 

下面的表格以ASPectWerkz 2.0.RC2-snapshot 作为参考标准:

AWBench (relative %)

ASPect

Werkz2.x

awproxy

ASPect

werkz1.0

ASPectj

jboss

spring

dynaop

cglib

ext:

aopalliance

ext:

spring

ext:

ASPectj

before, args() target()

1 x

2.5 x

60.6 x

1 x

22 x

35.5 x

39 x

14.5 x

-

22 x

-

around x 2, args() target()

1 x

1 x

8.1 x

0.6 x

3.6 x

5.4 x

5.6 x

1.9 x

5.8 x

5.9 x

-

before