通配符压测对比
压测准备 - 使用emqtt-bench压测工具
发布脚本
./emqtt_bench pub -t %i/test -h 172.17.6.75 -p 1887 -u fluxmq -P fluxmq -s 1024 -q 0 -c 1 -I 1000 -i 2 -L 1000000
订阅脚本
./emqtt_bench sub -t '%i/#' -h 172.17.6.75 -p 1887 -u fluxmq -P fluxmq -c 50000 -i 2 -q 0
压测指标
压测目标(CPU使用率) | FluxMQ | BifrMQ | EMQX | HiveMQ |
---|---|---|---|---|
wildcard_5w_5w_0_1_1024_100000000 | 33% | 42% | 59% | 45% |
wildcard_5w_5w_0_2_1024_100000000 | 52% | 73% | 84% | 崩溃 |
wildcard_5w_5w_1_1_1024_100000000 | 45% | 53% | 66% | 崩溃 |
压测明细
连接数_订阅数_QOS_频率(每秒)_数据包大小_数据包总数
wildcard_5w_5w_0_1_1024_100000000
wildcard_5w_5w_0_2_1024_100000000
wildcard_5w_5w_1_1_1024_100000000