MQTT.fx工具支持负载测试

问题描述 投票:-1回答:1

MQTT.fx工具是否支持负载测试?我想通过发送多个消息来测试GCP云IoT核心。

google-cloud-platform cloud mqtt google-cloud-iot
1个回答
0
投票

最简单的方法是使用emqtt-bench https://github.com/emqx/emqtt-bench

高性能测试脚本

## 200 clients publish a message every 50ms
## 200 * (1000 / 50) = 4000/s

./emqtt_bench pub -c 200 -t t/1 -h broker.emqx.io -I 50

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.