[Java] test results of several spring remoting calls:

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.