You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/06/19 09:38:22 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1833: ServiceComb有性能测试报告可以参考吗?

liubao68 edited a comment on issue #1833:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1833#issuecomment-646517123


   Highway不支持JSONObject编解码,为了保持和REST的一致性,后台进行了特殊处理JSONObject还是使用的JSON编解码的。 Highway 基于 protobuffer 编码, 当使用跨语言的数据结构的时候,才能够获得最高性能。比如:
   
   ```
   class Request {
      int a;
      String b;
      long c;
      Map<String, String> d;
   }
   ```
   
   这些类型 protobuffer 都支持的很好。 
   
   另外,看你的测试client和server都在一个windows机器上,需要观察下机器本身的CPU和内存占用情况。 很可能已经到机器的处理上限了,性能不会往上增长。 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org