[java]spring几种remoting调用的测试结果:

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.

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值