日期:2014-05-16  浏览次数:20407 次

ActiveMQ的kahadb写入消息性能测试(包括SSD硬盘)

测试用例如下列表所示,由此可以看出

1、SSD硬盘可以提升写入大概20%的性能

2、1K以内的消息,SATA硬盘一秒大概可以写入6000

3、1K以内的消息,SSD大概能写入7800

4、batch、filesize、甚至同步异步对其写入影响都不大。

有时间再测试下更大消息和更多场景,再结合现象和源码分析一下。


128字节的消息

-------------------------------------------------

 SATA,file:32M,batch默认是4M
send 1000000 messages with 128 bytes in 166.55 s 


SATA,file:32M,batch:10w
send 1000000 messages with 128 bytes in 159.544 s


SATA,file:32M,batch:1000
send 1000000 messages with 128 bytes in 158.19 s


SATA,file:32M,batch:100
send 1000000 messages with 128 bytes in 156.697 s


SATA,file:32M,batch:1000
send 1000000 messages with 128 bytes in 148.788 s


SATA,file:32M,batch:6000
send 1000000 messages with 128 bytes in 153.437 s


SATA,sync:false,batch:6000
send 1000000 messages with 128 bytes in 138.062 s


SATA,sync:false,batch:10000,indexCacheSize="1000"
send 1000000 messages with 128 bytes in 142.276 s


SSD,file:32M,batch:100
send 1000000 messages with 128 bytes in 126.175 s


SSD,file:32M,batch:1000
send 1000000 messages with 128 bytes in 124.645 s


SSD,file:32M,batch:6000
send 1000000 messages with 128 bytes in 125.037 s



1024字节的消息
---------------------------------------------------

SATA,file:32M,batch:100
send 1000000 messages with 1024 bytes in 167.411 s


SATA,file:32M,batch:500
send 1000000 messages with 1024 bytes in 155.16 s


SATA,file:32M,batch:1000,默认配置
send 1000000 messages with 1024 bytes in 170.095 s


SATA,file:256M,batch:6000
send 1000000 messages with 1024 bytes in 185.918 s


SSD,file:32M,batch:100
send 1000000 messages with 1024 bytes in 128.828 s


SSD,file:32M,batch:500
send 1000000 messages with 1024 bytes in 128.957 s


SSD,file:32M,batch:1000,默认配置
send 1000000 messages with 1024 bytes in 129.577 s


SSD,file:256M,batch:6000
send 1000000 messages with 1024 bytes in 142.154 s