Giter VIP home page Giter VIP logo

Comments (6)

andot avatar andot commented on August 15, 2024

I don't know what's wrong, but on my computer, http get on tomcat: 2000-3000qps, and tcp hprose server: 80000-100000qps.

from hprose-java.

danielsawan avatar danielsawan commented on August 15, 2024

can you please try to put your remote method on another host then localhost ? In my test the client was on localhost but both serveur (http, hprose) was on a remote host. So the traffic had to go threw TCP like a prod context.

from hprose-java.

andot avatar andot commented on August 15, 2024

If you use TCP, you can use setFullDuplex method to set the fullDuplex property to true on the client. It will be faster than the default setting.

from hprose-java.

danielsawan avatar danielsawan commented on August 15, 2024

The change is not hudge. Here is the results i get

10 requests :
duration hpro : 175899988
duration http : 82985343
HTTP WIN

100 requests :
duration hpro : 783401527
duration http : 716310436
HTTP WIN

500 requests :
duration hpro : 3416468571
duration http : 3536256223
HPROSE WIN

1000 requests :
duration hpro : 6644799171
duration http : 6926884271
HPROSE WIN

As i wrote before for a little number of request HTTP seems to be faster (real world situation) but when we loop over hundred of request then Hprose seems to be faster. I guess it is because HTTP Open & Close ressources for each call while Hprose let the connection Opened. But still in my little test HTTP seems to be faster.

from hprose-java.

andot avatar andot commented on August 15, 2024

My test is 1 client, 40 threads, 25000 requests on each thread.

from hprose-java.

wu-sheng avatar wu-sheng commented on August 15, 2024

@andot I think @danielsawan 's tests bring some important info. Limited requests per thread/connection seem more important to me. I suggest you should dive in to find out what is really happening in those cases.

from hprose-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.