You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "dragon-zhang (via GitHub)" <gi...@apache.org> on 2023/07/06 02:51:59 UTC

[GitHub] [dubbo] dragon-zhang opened a new issue, #12679: Significant performance degradation when compare dubbo-hessian2 with tri-hessian2

dragon-zhang opened a new issue, #12679:
URL: https://github.com/apache/dubbo/issues/12679

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.3
   * Operating System version: linux 3.1.0
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. run 3.1.10 tri-hessian2 provider
   UserDTO
   ```java
   @Data
   @Builder
   @NoArgsConstructor
   @AllArgsConstructor
   public class UserDTO implements Serializable {
   
       private static final long serialVersionUID = 1980962070014147308L;
   
       private String name;
   
       private String password;
   }
   ```
   
   DemoServiceImpl
   ```java
   @DubboService
   public class DemoServiceImpl implements DemoService {
   
       @Override
       public String sayHello(String name) {
           return name;
       }
   
       @Override
       public UserDTO sayDto(UserDTO dto) {
           return dto;
       }
   }
   ```
   
   application.yml
   ```yaml
   spring:
     application:
       name: duubo-provider-3110
   server:
     port: 0
     servlet:
       context-path: /${spring.application.name}
   
   dubbo:
     application:
       name: ${spring.application.name}
     registry:
       address: zookeeper://localhost:2181
     protocol:
       name: tri
       port: -1
       serialization: hessian2
     consumer:
       group: default
     provider:
       group: default
   ```
   
   2. run 3.1.10 consumer
   ```java
   @RestController
   public class TestController {
   
       @DubboReference
       private DemoService demoService;
   
       @RequestMapping("/sayDto")
       public UserDTO sayDto() {
           UserDTO dto = new UserDTO();
           dto.setName("zhangsan");
           dto.setPassword("123456");
           return demoService.sayDto(dto);
       }
   }
   ```
   
   3. run benchmark
   
   dubbo-hessian2
   ```
   summary + 278784 in 00:00:24 = 11591.9/s Avg:    13 Min:     1 Max:  1217 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary + 429487 in 00:00:30 = 14316.7/s Avg:    13 Min:     1 Max:  3016 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 708271 in 00:00:54 = 13104.2/s Avg:    13 Min:     1 Max:  3016 Err:     0 (0.00%)
   summary + 430394 in 00:00:30 = 14346.5/s Avg:    13 Min:     1 Max:  3014 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 1138665 in 00:01:24 = 13547.6/s Avg:    13 Min:     1 Max:  3016 Err:     0 (0.00%)
   summary + 429033 in 00:00:30 = 14301.1/s Avg:    13 Min:     1 Max:  1216 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 1567698 in 00:01:54 = 13745.8/s Avg:    13 Min:     1 Max:  3016 Err:     0 (0.00%)
   summary + 430121 in 00:00:30 = 14337.4/s Avg:    13 Min:     1 Max:  1091 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 1997819 in 00:02:24 = 13869.0/s Avg:    13 Min:     1 Max:  3016 Err:     0 (0.00%)
   summary + 431489 in 00:00:30 = 14383.0/s Avg:    13 Min:     1 Max:  3022 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 2429308 in 00:02:54 = 13957.6/s Avg:    13 Min:     1 Max:  3022 Err:     0 (0.00%)
   summary + 431205 in 00:00:30 = 14373.5/s Avg:    13 Min:     1 Max:  3018 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 2860513 in 00:03:24 = 14018.8/s Avg:    13 Min:     1 Max:  3022 Err:     0 (0.00%)
   summary + 431845 in 00:00:30 = 14394.8/s Avg:    13 Min:     1 Max:  3024 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 3292358 in 00:03:54 = 14067.0/s Avg:    13 Min:     1 Max:  3024 Err:     0 (0.00%)
   summary + 430631 in 00:00:30 = 14354.4/s Avg:    13 Min:     1 Max:  3020 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 3722989 in 00:04:24 = 14099.6/s Avg:    13 Min:     1 Max:  3024 Err:     0 (0.00%)
   summary + 430877 in 00:00:30 = 14362.6/s Avg:    13 Min:     1 Max:  1214 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 4153866 in 00:04:54 = 14126.4/s Avg:    13 Min:     1 Max:  3024 Err:     0 (0.00%)
   summary +  94122 in 00:00:07 = 13748.5/s Avg:    13 Min:     1 Max:  1069 Err:     0 (0.00%) Active: 0 Started: 200 Finished: 200
   summary = 4247988 in 00:05:01 = 14117.8/s Avg:    13 Min:     1 Max:  3024 Err:     0 (0.00%)
   ```
   
   tri-hessian2
   ```
   summary +   1156 in 00:00:02 =  476.9/s Avg:    45 Min:    23 Max:   214 Err:     0 (0.00%) Active: 48 Started: 48 Finished: 0
   summary + 127541 in 00:00:30 = 4257.6/s Avg:    42 Min:    20 Max:  1063 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 128697 in 00:00:32 = 3974.6/s Avg:    42 Min:    20 Max:  1063 Err:     0 (0.00%)
   summary + 102913 in 00:00:30 = 3430.4/s Avg:    58 Min:    19 Max:  1069 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 231610 in 00:01:02 = 3712.9/s Avg:    49 Min:    19 Max:  1069 Err:     0 (0.00%)
   summary +  70274 in 00:00:30 = 2342.5/s Avg:    85 Min:    23 Max:  1045 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 301884 in 00:01:32 = 3267.9/s Avg:    57 Min:    19 Max:  1069 Err:     0 (0.00%)
   summary +  72951 in 00:00:30 = 2431.2/s Avg:    81 Min:    20 Max:  1145 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 374835 in 00:02:02 = 3062.7/s Avg:    62 Min:    19 Max:  1145 Err:     0 (0.00%)
   summary +  93860 in 00:00:30 = 3128.2/s Avg:    64 Min:    21 Max:  1166 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 468695 in 00:02:32 = 3075.6/s Avg:    62 Min:    19 Max:  1166 Err:     0 (0.00%)
   summary + 140706 in 00:00:30 = 4690.8/s Avg:    42 Min:    20 Max:  1038 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 609401 in 00:03:02 = 3341.3/s Avg:    58 Min:    19 Max:  1166 Err:     0 (0.00%)
   summary + 143285 in 00:00:30 = 4776.0/s Avg:    41 Min:    20 Max:  1058 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 752686 in 00:03:32 = 3543.9/s Avg:    55 Min:    19 Max:  1166 Err:     0 (0.00%)
   summary + 150479 in 00:00:30 = 5017.0/s Avg:    39 Min:    19 Max:  1050 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 903165 in 00:04:02 = 3726.2/s Avg:    52 Min:    19 Max:  1166 Err:     0 (0.00%)
   summary + 146485 in 00:00:30 = 4882.3/s Avg:    40 Min:    19 Max:  1049 Err:     0 (0.00%) Active: 200 Started: 200 Finished: 0
   summary = 1049650 in 00:04:32 = 3853.6/s Avg:    50 Min:    19 Max:  1166 Err:     0 (0.00%)
   summary + 136203 in 00:00:28 = 4858.0/s Avg:    40 Min:    19 Max:  1079 Err:     0 (0.00%) Active: 0 Started: 200 Finished: 200
   summary = 1185853 in 00:05:00 = 3947.3/s Avg:    49 Min:    19 Max:  1166 Err:     0 (0.00%)
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   No significant decrease in performance.
   
   Significant performance degradation.
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] dragon-zhang closed issue #12679: Significant performance degradation when compare dubbo-hessian2 with tri-hessian2

Posted by "dragon-zhang (via GitHub)" <gi...@apache.org>.
dragon-zhang closed issue #12679: Significant performance degradation when compare dubbo-hessian2 with tri-hessian2
URL: https://github.com/apache/dubbo/issues/12679


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] icodening commented on issue #12679: Significant performance degradation when compare dubbo-hessian2 with tri-hessian2

Posted by "icodening (via GitHub)" <gi...@apache.org>.
icodening commented on issue #12679:
URL: https://github.com/apache/dubbo/issues/12679#issuecomment-1638497594

   相同场景下的dubbo性能总是高于tri的,属于正常情况


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #12679: Significant performance degradation when compare dubbo-hessian2 with tri-hessian2

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12679:
URL: https://github.com/apache/dubbo/issues/12679#issuecomment-1634176600

   @EarthChen @icodening PTAL


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org