Comments (6)
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.
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.
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.
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.
My test is 1 client, 40 threads, 25000 requests on each thread.
from hprose-java.
@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)
- hprose.io.unserialize.Reader.unserialize占用CPU奇高 HOT 2
- 环境差异导致不能连接到服务器,如何排查 HOT 1
- 查询单个对象的时候 可以 但是 查询 对象集合的时候 就不行了 List<A> HOT 5
- hprose-java/wiki HOT 2
- hprose-java不支持maven依赖吗?没有maven支持版本? HOT 2
- 跨域问题
- 服务器使用PHP语言开发的,然后我用Java语言请求,明明有响应数据,但是一直抛异常 HOT 2
- JSON format support? HOT 2
- How to unserialize golang map[string]interface{} to java side? HOT 1
- 在安卓手机上,订阅有数量限制么? HOT 2
- Android客户端使用订阅,服务器端重启的情况,客户端无法自动重连服务器 HOT 1
- An illegal reflective access operation has occurred HOT 1
- idea中测试hprose tomcat 关闭时 hprose报错误信息 HOT 1
- 关于内存溢出的疑问 HOT 6
- 请问什么时候支持Hprose 3.0? HOT 5
- get 乱码 HOT 8
- ByteBufferStream 堆外内存申请问题 HOT 1
- 2.0的客户端,能否订阅go写的3.0的推送服务? HOT 2
- 关于HproseServlet发布的地址,通过浏览器打开会变成下载
- Hprose-java推送服务功能出现堵塞,直至服务端超时 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hprose-java.