1000 loop test:

testDirectAccountService:10     ---direct java call
testDirectAccountServiceR:20
testAccountService:40  ---factory.getBean(xxx)
testAccountServiceR:40
testRMIAccountService:7711 ---normal object's rmi service
testRMIAccountServiceR:1402  ---Remote object's rmi service
testAccountServiceHessian:4637 ---normal object's hessian service
testAccountServiceBurlap:3726 ---normal object's hessian service
testAccountServiceHttpinvoker:16744 ---normal object's hessian service

rev:1.1rc2
cpu:赛扬450
ram:312M

传统的Remote接口RMI Servie最快,也比较麻烦,需要stub.重大优点:支持回调
新推出的http invoker令人失望.
RMI包装调用普通对象成了鸡肋.
基于http+xml的burlap出人意料的比http+序列化的hessian要快.

看样,如果Romote接口被频繁调用推荐用传统RMI
如果希望基于http,不需要实现remote接口,推荐用caucho的burlap.

测试代码:
https://files.cnblogs.com/steeven/spring-remoting-test.rar

posted on 2004-09-12 13:49  steeven  阅读(3178)  评论(2编辑  收藏  举报