Reputation: 182
I'm using json-rpc-cpp library from cinemast
As a test I have written simple server which takes two integers and returns their sum to the client. On a really small VPS (128 MB RAM) it was possible to reach ~270 queries per second on localhost and then on two separate VPS's.
Is such a result standard for json-rpc? Can I make it noticeably faster?
Upvotes: 0
Views: 1288
Reputation: 1726
I would say no, that your results do not seem typical. And yes, you should be able to make it faster.
I know this link is not c++ and the box I tested on had more resources then your VM, but I can get 100k-120k per second using http://jsonrpc2.codeplex.com/
I would expect your purely native code to perform similarly.
Upvotes: 1