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
Test accountservicehttpinvoker: 16744 --- normal object's Hessian Service
Rev: 1.1rc2
CPU: Sai Yang 450
Ram: 312 m
The traditional remote interface RMI servie is the fastest and troublesome, and requires stub. Major advantages: callback is supported.
The new HTTP invoker is disappointing.
The common object called by RMI packaging becomes a chicken rib.
Burlap Based on HTTP + XML is unexpectedly faster than Hessian Based on HTTP + serialization.
We recommend that you use traditional RMI if the romote interface is frequently called.
If you do not need to implement the remote interface based on HTTP, we recommend that you use the burlap of Caucho.
TestCode:
Http://files.cnblogs.com/steeven/spring-remoting-test.rar