[ 
https://issues.apache.org/jira/browse/SCB-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356789#comment-16356789
 ] 

yangyongzheng edited comment on SCB-326 at 2/9/18 1:26 AM:
-----------------------------------------------------------

We had make a test to compare two way performance,it seems use custom EventBus 
has more better performance:

 
| |custom EventBus|guava EventBus|
|tps|1,000,000 +|500,000 +|
|latency|1ms|1.8ms|
|consumer cpu|about 650%|about 500%|
|producer cpu|about 750%|about 800%|

 

May cause by guava EventBus invoke subscribe method via java reflection 
mechanism,need more deep code analysis later

*So we do not apply this Jira current*

 

Detail:

=====================================================================

 

Custom EventBus output : 

!image-2018-02-08-18-42-40-219.png!

=====================================================================

Guava EventBus output :

!image-2018-02-08-18-41-03-675.png!

 =====================================================================

Consumer config:

!image-2018-02-08-18-46-23-679.png!

Producer config:

!image-2018-02-08-18-47-07-285.png!


was (Author: zhengyangyong):
We had make a test to compare two way performance,it seems use custom EventBus 
has more better performance:

 
| |custom EventBus|guava EventBus|
|tps|1,000,000 +|500,000 +|
|latency|1ms|1.8ms|
|consumer cpu|about 650%|about 500%|
|producer cpu|about 750%|about 800%|

 

**May cause by guava EventBus invoke subscribe method via java reflection 
mechanism,need more deep code analysis later**

 

Detail:

=====================================================================

 

Custom EventBus output : 

!image-2018-02-08-18-42-40-219.png!

=====================================================================

Guava EventBus output :

!image-2018-02-08-18-41-03-675.png!

 =====================================================================

Consumer config:

!image-2018-02-08-18-46-23-679.png!

Producer config:

!image-2018-02-08-18-47-07-285.png!

> Using the  EventManager directly without creating another wrapper
> -----------------------------------------------------------------
>
>                 Key: SCB-326
>                 URL: https://issues.apache.org/jira/browse/SCB-326
>             Project: Apache ServiceComb
>          Issue Type: Sub-task
>          Components: Java-Chassis
>    Affects Versions: java-chassis-1.0.0-m1
>            Reporter: yangyongzheng
>            Assignee: yangyongzheng
>            Priority: Major
>             Fix For: java-chassis-1.0.0-m1
>
>         Attachments: image-2018-02-08-18-39-42-739.png, 
> image-2018-02-08-18-41-03-675.png, image-2018-02-08-18-42-40-219.png, 
> image-2018-02-08-18-46-23-679.png, image-2018-02-08-18-47-07-285.png
>
>
> Remove custom EventBus because old EventManager with google EventBus is good 
> enough



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to